Disabling power up pickup for a soldier [message #487536] |
Thu, 08 May 2014 08:39 |
|
Jerad2142
Messages: 3813 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
Is there a way to prevent powerups from being picked up by a soldier, I tried giving the powerups the physics class of "Human" in LevelEdit, and then I applied Soldier_Ghost_Collision_Group to the soldier via Set_Collision_Group however they were still able to pick them up.
Any ideas?
Visit Jerad's deer sweat shop
|
|
|
|
|
|
|
|
|
|
|
|
Re: Disabling power up pickup for a soldier [message #487561 is a reply to message #487560] |
Sat, 10 May 2014 13:21 |
|
Jerad2142
Messages: 3813 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
1 Team: GDI
Radar Blip Color: Yellow
Enemies: Nod, Renegade, Mutant
0 Team: Nod
Radar Blip Color: Red
Enemies: GDI, Renegade, Mutant
-1 Team: Renegade
Radar Blip Color: Blue
Enemies: Nod, GDI, Renegade, Mutant, Civilian
Notes: No allies
-2 Team: Civilian
Radar Blip Color: White
Enemies: None
Notes: AI Ignores
-3 Team: Mutant
Radar Blip Color: Green
Enemies: GDI, Nod, Civilian, Renegade
-4 Team: Spectator
Radar Blip Color: White
Enemies: None
Notes: Can't pickup power ups, Neutral with all
All Others:
Team: Unknown
Radar Blip Color: White
Enemies: Nod, GDI, Renegade, Mutant, Civilian
Notes: Neutral with own team
Visit Jerad's deer sweat shop
|
|
|
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: 1
|
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.
|
|
|