Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Stealth Suit POW  () 1 Vote
Stealth Suit POW [message #486586] Tue, 04 March 2014 03:09 Go to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
I made the stealth suit work on pick up using the tda_stealth_armor script, but when I put it in a purchase using jfw_powerup_buy_poke it doesn't work.

I use the powerup_buy script for many items and have checked my work several times but for some unknown reason you don't stealth when you buy it.

Does anyone know why this is happening?


Level edit is my play ground
Re: Stealth Suit POW [message #486598 is a reply to message #486586] Tue, 04 March 2014 18:58 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
surely someone has gotten it to work

Level edit is my play ground
Re: Stealth Suit POW [message #486617 is a reply to message #486586] Wed, 05 March 2014 06:12 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

You can only make it work if you write a script for it.


void Enable_Stealth_Poke::Poked(GameObject *obj, GameObject *poker)
{
Commands->Enable_Stealth(poker,true);
}

You'll have to code in some bool's though for cost and stuff.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: Stealth Suit POW [message #486618 is a reply to message #486617] Wed, 05 March 2014 06:42 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
TDA_Stealth_Powerup if I recall correctly can be attached to make it work, that's a 3.4.4 script.

Re: Stealth Suit POW [message #486621 is a reply to message #486586] Wed, 05 March 2014 07:14 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Thats what he did. But the powerup buy from jonwil probably gives the powerup directly so the 'pickup' event never triggers on it.

https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: Stealth Suit POW [message #486623 is a reply to message #486621] Wed, 05 March 2014 11:31 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Sorry didn't read Sad

Then yes,
void Enable_Stealth_Poke::Poked(GameObject *obj, GameObject *poker)
 {
 Commands->Enable_Stealth(poker,true);
 }


would work, but if you wanted something that goes away after a time period you could also do:
void Enable_Stealth_Poke::Poked(GameObject *obj, GameObject *poker)
{
  Commands->Attach_Script(poker,"TDA_Stealth_Armor","300.0");// 300 seconds
  Commands->Send_Custom_Event(obj,poker,1000,0,0);
}


Re: Stealth Suit POW [message #486655 is a reply to message #486586] Thu, 06 March 2014 02:52 Go to previous message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
Thanks again, my first custom script is in.

Level edit is my play ground
Previous Topic: manual harvesting scripts
Next Topic: Di3HardNL Model Requests
Goto Forum:
  


Current Time: Thu Apr 18 04:52:21 MST 2024

Total time taken to generate the page: 0.00689 seconds