void OnStart();
{
SetLocalVarInt("Valve", 0);
}
/*Turn Valves to direct steam
*/
void TurnStartSteam(string &in asEntity, int alState)
{
if(alState == 1){
for(int i=6; i<=8;i++){
CreateParticleSystemAtEntity("ValveP"+i, "ps_steam.ps", "ValveParticles_"+i, true);
PlaySoundAtEntity("ValveS"+i, "13_steam", "ValveParticles_"+i, 0.5, true);
SetPropObjectStuckState("machine_valve_1", 1);
SetEntityInteractionDisabled("machine_valve_1", true);
PlaySoundAtEntity("", "lock_door.snt", "machine_valve_1", 0, true);
FadeLightTo("PointLight_6", 0,0,0,0, -1, 1.5f);
AddLocalVarInt("Valve", 1);
}
}
else if (alState == -1) AddDebugMessage("Valve Min", false);
}
void TurnStartSteam2(string &in asEntity, int alState)
{
if(alState == 1){
for(int i=1; i<=2;i++){
CreateParticleSystemAtEntity("ValveP"+i, "ps_steam.ps", "ValveParticles_"+i, true);
PlaySoundAtEntity("ValveS"+i, "13_steam", "ValveParticles_"+i, 0.5, true);
SetPropObjectStuckState("machine_valve_2", 1);
SetEntityInteractionDisabled("machine_valve_2", true);
PlaySoundAtEntity("", "lock_door.snt", "machine_valve_2", 0, true);
FadeLightTo("PointLight_7", 0,0,0,0, -1, 1.5f);
AddLocalVarInt("Valve", 1);
}
}
else if (alState == -1) AddDebugMessage("Valve Min", false);
}
void TurnStartSteam3(string &in asEntity, int alState)
{
if(alState == 1){
for(int i=3; i<=5;i++){
CreateParticleSystemAtEntity("ValveP"+i, "ps_steam.ps", "ValveParticles_"+i, true);
PlaySoundAtEntity("ValveS"+i, "13_steam", "ValveParticles_"+i, 0.5, true);
SetPropObjectStuckState("machine_valve_3", 1);
SetEntityInteractionDisabled("machine_valve_3", true);
PlaySoundAtEntity("", "lock_door.snt", "machine_valve_3", 0, true);
FadeLightTo("PointLight_8", 0,0,0,0, -1, 1.5f);
AddLocalVarInt("Valve", 1);
}
}
else if (alState == -1) AddDebugMessage("Valve Min", false);
}
void TurnStartSteam4(string &in asEntity, int alState)
{
if(alState == 1){
for(int i=9; i<=12;i++){
CreateParticleSystemAtEntity("ValveP"+i, "ps_steam.ps", "ValveParticles_"+i, true);
PlaySoundAtEntity("ValveS"+i, "13_steam", "ValveParticles_"+i, 0.5, true);
SetPropObjectStuckState("machine_valve_4", 1);
SetEntityInteractionDisabled("machine_valve_4", true);
PlaySoundAtEntity("", "lock_door.snt", "machine_valve_4", 0, true);
FadeLightTo("PointLight_9", 0,0,0,0, -1, 1.5f);
AddLocalVarInt("Valve", 1);
}
}
else if (alState == -1) AddDebugMessage("Valve Min", false);
}