Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003171Zandronum[All Projects] Bugpublic2017-06-26 17:072017-06-26 20:42
ReporterCutman 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version2.1 
Target VersionFixed in Version 
Summary0003171: GAMEVENT_ROUND_ENDS EVENT trigger type functioning incorrectly
DescriptionThis EVENT script type appears to get fired off at the wrong times, almost as if it's triggering for multiple event types rather than just the round ending.

This bug happens in 2.1.2 too.
Steps To Reproduce1. Grab the WAD. Jump into a LMS match on MAP01 with a bot.
2. Start the game and fight the bot. You'll notice the script gets triggered multiple times, when you get medals etc.

Not just a bot thing either, you can test it with a second player or yourself on a second client.
Additional InformationHere's the script:

int count;

script "lol" (int GAMEVENT_ROUND_ENDS, int a, int b) EVENT
{
    count++;
    PrintBold(s:"event triggered! ", i:count, s:" times!");
}
Attached Files? file icon eventtest.pk3 [^] (672 bytes) 2017-06-26 17:07

- Relationships

-  Notes
User avatar (0017937)
Catastrophe (reporter)
2017-06-26 19:28

Pretty sure you're using it wrong. Event scripts work like this: script 123 (int type, int arg1, int arg2) EVENT

so you have to do, if(type == GAMEVENT_ROUND_ENDS) { count++; printbold(s:"hi");}

What you're doing currently is just renaming a variable.
User avatar (0017939)
Cutman (reporter)
2017-06-26 19:57

Oh that explains it. So my code has been firing for every single event type. My bad, please close!

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-06-26 17:07 Cutman New Issue
2017-06-26 17:07 Cutman File Added: eventtest.pk3
2017-06-26 17:43 WaTaKiD Product Version 3.0-beta => 2.1
2017-06-26 19:28 Catastrophe Note Added: 0017937
2017-06-26 19:57 Cutman Note Added: 0017939
2017-06-26 20:42 WaTaKiD Status new => closed
2017-06-26 20:42 WaTaKiD Resolution open => no change required






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker