first launched holopilot will not have a battery in LTS

This commit is contained in:
Nathan TIEN YOU
2022-02-05 15:07:45 +01:00
parent bf4bbb5b31
commit 0b480c8c77
@@ -260,6 +260,13 @@ void function SetupDecoy_Common( entity player, entity decoy ) //functioned out
}
}
if(GetCurrentPlaylistName() == "lts"){
if(!(player in playerDecoyList)){
if(isBattery)
createHologram = false;
}
}
asset modelName = childEnt.GetModelName()
if ( createHologram && modelName != $"" && childEnt.GetParentAttachment() != "" )
{
@@ -268,17 +275,10 @@ void function SetupDecoy_Common( entity player, entity decoy ) //functioned out
decoyChildEnt.SetParent( decoy, childEnt.GetParentAttachment() )
if ( isBattery ){
if(GetCurrentPlaylistName() == "lts"){
if(player in playerDecoyList){
thread Decoy_BatteryFX( decoy, decoyChildEnt )
}
}else{
thread Decoy_BatteryFX( decoy, decoyChildEnt )
}
}
else
thread Decoy_BatteryFX( decoy, decoyChildEnt )
}else{
thread Decoy_FlagFX( decoy, decoyChildEnt )
}
}
childEnt = childEnt.NextMovePeer()