Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Stealth command help
Re: Stealth command help [message #408668 is a reply to message #407893] Wed, 28 October 2009 10:31 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
Chage Hubba_Player to this:


void Hubba_Player::Created(GameObject *obj){
IsPlayerStealth[Get_Player_ID(obj)] = false; //This line ensures that when a player is spawned (including new purchases) the array is updated to not include them as a stealth player, which is why you was getting that glitch.
if(firstspawn[Get_Player_ID(obj)] == true){
for (int i = 1; i < 128; i++){
if(IsPlayerStealth[i] == true && Get_GameObj(i)){
Commands->Enable_Stealth(Get_GameObj(i),true);
}
}
firstspawn[Get_Player_ID(obj)] = false;
}


Please consider adding conditions for making sure the player is team Nod and they Hand Of Nod must be alive for the command to work. I am not keen on these commands really, I hope you at least consider this...

Now come on... Who are you?



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: I need of a modified scripts.dll
Next Topic: Level Edit Problem
Goto Forum:
  


Current Time: Sat Dec 21 09:23:48 MST 2024

Total time taken to generate the page: 0.01559 seconds