Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Disabling power up pickup for a soldier
Re: Disabling power up pickup for a soldier [message #487569 is a reply to message #487536] Sun, 11 May 2014 12:01 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
In dragonade I use the events wd added.

bool blah::PowerUp_Grant_Request_Event(cPlayer *Player,const PowerUpGameObjDef *PowerUp,PowerUpGameObj *PowerUpObj)
{
if ( PData[Player->Get_ID()]->Spectating == true )
{
return false;
}
return true;
}

Setting team to -4 is the easiest way but that's if you want the team to change.


http://s18.postimage.org/jc6qbn4k9/bricks3.png
 
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: script or stock replacement for?
Next Topic: bake light in renegade?
Goto Forum:
  


Current Time: Wed Dec 18 13:49:06 MST 2024

Total time taken to generate the page: 0.00982 seconds