Skip to content

Commit

Permalink
does this fix wave timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Windolon committed Jan 15, 2025
1 parent 3585f79 commit 5878eb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/vscripts/popextensions/missionattributes.nut
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,8 @@ if (!("ScriptUnloadTable" in ROOT)) ::ScriptUnloadTable <- {}
"666Wavebar": function(value) { //need quotes for this guy.
MissionAttributes.StartWaveTable.EventWavebar <- function(params) {
SetPropInt(PopExtUtil.ObjectiveResource, "m_nMvMEventPopfileType", value)
// also needs to set wavenum and maxwavenum to be zero, thanks ptyx
// also needs to set maxwavenum to be zero, thanks ptyx
if (value == 0) return
SetPropInt(PopExtUtil.ObjectiveResource, "m_nMannVsMachineWaveCount", 0)
SetPropInt(PopExtUtil.ObjectiveResource, "m_nMannVsMachineMaxWaveCount", 0)
}
// needs to be delayed for huds loading properly
Expand Down

0 comments on commit 5878eb6

Please sign in to comment.