Re: Disabling power up pickup for a soldier [message #487569 is a reply to message #487536] |
Sun, 11 May 2014 12:01 |
|
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.
|
|
|