Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts to grant powerups or weapons
Scripts to grant powerups or weapons [message #256466] Mon, 30 April 2007 02:49 Go to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
I am searching for multiple scripts that give the player a weapon or another powerup when they walk through something. Is there someone that can make a small list for me which contains the scripts that work best?
Re: Scripts to grant powerups or weapons [message #256497 is a reply to message #256466] Mon, 30 April 2007 07:53 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Umm...Write your own? Use the crates.cpp for help with this. (As a guide)

Also, I think granting powerups is in the "Commands->" group (C++)

-MathK1LL


EDIT: Check out this post. It's all explained in that post. We've already answered this...

[Updated on: Mon, 30 April 2007 07:55]

Report message to a moderator

Re: Scripts to grant powerups or weapons [message #256614 is a reply to message #256466] Tue, 01 May 2007 03:15 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
Whit those scripts I mean the script in level edit. Like KAK_Give_Powerup_On_Pickup. So what I mean is the scripts I can attach to a character, vehicle, weapon or anything. I am NOT talking about any C++ stuff, but just things like: JFW_Grant_Powerup and other stuff that give the player a certain weapon or powerup when they pick something up.
Re: Scripts to grant powerups or weapons [message #256646 is a reply to message #256614] Tue, 01 May 2007 12:29 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Why need multiple?


M00_Grant_powerup I think is one.
Re: Scripts to grant powerups or weapons [message #256996 is a reply to message #256646] Thu, 03 May 2007 09:15 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
"KAK_Give_Powerup_On_Pickup" will work.
Or if you wanted to get more complicated attach "JFW_Attach_Script_Collector" to the power up, give it "JFW_Timer_Custom" in the script field, in the params spot of the script put "(timer time)#(random number)#0#100334#877856#1", and a delim of #.
Then make an invisible object on the level, with an ID of 100334 or whatever, and add the script JFW_Reflect_Custom. Now back on the powerup use "JFW_Attach_Script_Collector" to attach a script to the object that picks it up, this script should be triggered by the custom 877856. Or if you want to give it a power up, attach the script "jfw_attach_script_custom" on the object, put "m00_grant_powerup" in the script field, name of the weapon in the param field, # in the delim field, and 877856 in the custom field.


[Updated on: Thu, 03 May 2007 09:18]

Report message to a moderator

Previous Topic: Z-Facing
Next Topic: New sydney model
Goto Forum:
  


Current Time: Sun Dec 01 03:02:39 MST 2024

Total time taken to generate the page: 0.00722 seconds