Skip to content

Commit

Permalink
use ClientProp for these
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Nov 19, 2024
1 parent 834a71d commit 7d8b26b
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions scripts/population/mvm_null_b9a_exp_0.pop
Original file line number Diff line number Diff line change
Expand Up @@ -1799,11 +1799,12 @@ WaveSchedule
local ent = Entities.FindByClassname(null, `tf_objective_resource`)
if (ent)
{
NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp)`)
// NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp)`)
ent.AcceptInput(`$SetClientProp$m_iszMvMPopfileName`, `(Exp)`, null, null)
}
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 1)
NetProps.SetPropInt(resource, `m_nMannVsMachineMaxWaveCount`, 4)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineWaveCount`, `1`, null, null)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineMaxWaveCount`, `4`, null, null)
"
}
DoneOutput
Expand All @@ -1820,8 +1821,8 @@ WaveSchedule
Param "
EntFire(`wave_start_relay_ironman`, `Trigger`)
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 1)
NetProps.SetPropInt(resource, `m_nMannVsMachineMaxWaveCount`, 4)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineWaveCount`, `1`, null, null)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineMaxWaveCount`, `4`, null, null)
"
}
}
Expand Down Expand Up @@ -2590,11 +2591,12 @@ WaveSchedule
local ent = Entities.FindByClassname(null, `tf_objective_resource`)
if (ent)
{
NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp) The Horrors`)
// NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp) The Horrors`)
ent.AcceptInput(`$SetClientProp$m_iszMvMPopfileName`, `(Exp) The Horrors`, null, null)
}
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 2)
NetProps.SetPropInt(resource, `m_nMannVsMachineMaxWaveCount`, 4)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineMaxWaveCount`, `4`, null, null)
"
}
DoneOutput
Expand All @@ -2612,7 +2614,7 @@ WaveSchedule
EntFire(`wave_start_relay_ironman`, `Trigger`)
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 2)
NetProps.SetPropInt(resource, `m_nMannVsMachineMaxWaveCount`, 4)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineMaxWaveCount`, `4`, null, null)
"
}
}
Expand Down Expand Up @@ -3833,11 +3835,12 @@ WaveSchedule
local ent = Entities.FindByClassname(null, `tf_objective_resource`)
if (ent)
{
NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp) Under The Moonlight`)
// NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp) Under The Moonlight`)
ent.AcceptInput(`$SetClientProp$m_iszMvMPopfileName`, `(Exp) Under The Moonlight`, null, null)
}
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 3)
NetProps.SetPropInt(resource, `m_nMannVsMachineMaxWaveCount`, 4)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineMaxWaveCount`, `4`, null, null)
TankExt.SetValueOverrides({
VACTANK_RESIST_MULT = 0.85
})
Expand Down Expand Up @@ -3868,7 +3871,7 @@ WaveSchedule
EntFire(`wave_start_relay_ironman`, `Trigger`)
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 3)
NetProps.SetPropInt(resource, `m_nMannVsMachineMaxWaveCount`, 4)
resource.AcceptInput(`$SetClientProp$m_nMannVsMachineMaxWaveCount`, `4`, null, null)
TankExt.SetValueOverrides({
VACTANK_RESIST_MULT = 0.85
})
Expand Down Expand Up @@ -5107,7 +5110,8 @@ WaveSchedule
local ent = Entities.FindByClassname(null, `tf_objective_resource`)
if (ent)
{
NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp) 0`)
// NetProps.SetPropString(ent, `m_iszMvMPopfileName`, `(Exp) 0`)
ent.AcceptInput(`$SetClientProp$m_iszMvMPopfileName`, `(Exp) 0`, null, null)
}
local resource = Entities.FindByClassname(null, `tf_objective_resource`)
NetProps.SetPropInt(resource, `m_nMannVsMachineWaveCount`, 3)
Expand Down

0 comments on commit 7d8b26b

Please sign in to comment.