Disabling power up pickup for a soldier [message #487536] |
Thu, 08 May 2014 08:39 ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](/images/custom_avatars/21300.png) |
Jerad2142
Messages: 3806 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?
|
|
|
|
Re: Disabling power up pickup for a soldier [message #487544 is a reply to message #487537] |
Thu, 08 May 2014 12:05 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](/images/custom_avatars/21300.png) |
Jerad2142
Messages: 3806 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
No I don't want some soldiers (IE spectators) to pick up power ups.
And yeah I've done that before in ECW but I was hoping that 4.X had made a cleaner way to do it. Especially since this still allows the spectator to troll players by picking up the power up and standing over it thus preventing it from re-spawning.
[Updated on: Thu, 08 May 2014 12:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Disabling power up pickup for a soldier [message #487561 is a reply to message #487560] |
Sat, 10 May 2014 13:21 ![Go to previous message Go to previous message](/theme/Renegade_Forums/images/up.png) ![Go to next message Go to next message](/theme/Renegade_Forums/images/down.png) |
![](/images/custom_avatars/21300.png) |
Jerad2142
Messages: 3806 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
|
|
|
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 Go to previous message](/theme/Renegade_Forums/images/up.png) |
![](http://renegadeforums.com/images/avatars/Viseroid.jpg) |
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.
![http://s18.postimage.org/jc6qbn4k9/bricks3.png](http://s18.postimage.org/jc6qbn4k9/bricks3.png)
|
|
|