View previous topic :: View next topic |
Author |
Message |
Maikl_Russia has entered the game!
Joined: 18 Jul 2005 Location: RU
|
Posted: Fri Dec 04, 2015 8:13 pm Post subject: [ASC] GetTeamScore(team)/SetTeamScore(team, value) |
|
|
Simple test wad SetTeamScore_test.wad for TeamDM.
SetTeamScore must increase teamscore when player picks up soulsphere too. But teamscore not changed. Also SetTeamScore returns FALSE every time.
Meanwhile GetTeamScore always returns 0.
May be I do something wrong... But can't understand - what exactly |
|
Back to top |
|
|
Zedek has entered the game!
Joined: 10 Mar 2013 Location: Tijuana, México
|
Posted: Sat Dec 05, 2015 8:29 am Post subject: |
|
|
i'm not sure, but i think that zspecial.acs has the wrong values for zdaemon
I tested your wad, and indeed, nothing happens.
Then i edited my zspecial.acs and recompiled the code and it worked as it should. |
|
Back to top |
|
|
Krawa There is a limit
Joined: 23 Nov 2008 Location: #SDA
|
|
Back to top |
|
|
Maikl_Russia has entered the game!
Joined: 18 Jul 2005 Location: RU
|
Posted: Sat Dec 05, 2015 5:56 pm Post subject: |
|
|
Oh, damn... yes... There is disorder of these functions in zspecial.acs and zdaemon.acs.
In zspecial.acs:
Code: | // ZDaemon's
-19260:GetTeamScore(1),
-19261:SetTeamScore(2),
|
In zdaemon.acs:
Code: | // -19620:GetTeamScore(1), //already defined in zspecial.acs
// -19621:SetTeamScore(2), //already defined in zspecial.acs
|
Numbers 2 and 6 are reversed. Correct values are in zdaemon.acs.
Thanx guys. Now all works fine. And the return value of SetTeamScore too.
The problem is solved. |
|
Back to top |
|
|
|