Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Stealth Suit Drop  () 2 Votes
Stealth Suit Drop [message #216300] Wed, 30 August 2006 14:07 Go to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
Well, I was trying to do it so when a Stealth Black Hand (SBH) Die. He would drop his stealth suit for others to pick up. I did this only the suit doesnt give you the "Cloak ability". Any ideas on the script in which to do this?

http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Stealth Suit Drop [message #216396 is a reply to message #216300] Thu, 31 August 2006 00:08 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
In order to achieve this, all users in your server would be having to run BHS.dll because the client cannot support it.

Let all your wishes be granted except one, so you will still have something to strieve for.
Re: Stealth Suit Drop [message #216408 is a reply to message #216300] Thu, 31 August 2006 02:34 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
You could however change there model to the sbh when they pick it up, and keep there original weapons...


Re: Stealth Suit Drop [message #216414 is a reply to message #216396] Thu, 31 August 2006 03:51 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
dead6re wrote on Thu, 31 August 2006 03:08

In order to achieve this, all users in your server would be having to run BHS.dll because the client cannot support it.



basically, if there is a mix of people in your server - people that have it, and people that dont - for the people that do, stelth will work, for the people that dont, they see the infantry normally. i know this cos a server has it, and people accuse others of cheating cos they can see others perfectly even though they are meant to be stealthed.


This is a signature. Reading this is wasting your time.
Re: Stealth Suit Drop [message #216452 is a reply to message #216414] Thu, 31 August 2006 08:03 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
Yes, using "charter become stealth" scrips is pretty annoying, but if you change the model, you become a SBH? that is a clever solution


(but how do servers get vehicles stealth?)


Moding can be real Fun...
Re: Stealth Suit Drop [message #217327 is a reply to message #216300] Mon, 04 September 2006 15:09 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
Is there a script that will...

1) Change the character if and when it touches the item (Stealth suit)

Or

2) Script that will cloak on contact.


http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Stealth Suit Drop [message #217351 is a reply to message #217327] Mon, 04 September 2006 17:15 Go to previous messageGo to next message
havoc9826 is currently offline  havoc9826
Messages: 562
Registered: April 2006
Location: California, USA
Karma: 0
Colonel
I haven't tried it myself, since I know nothing about scripting, but I think you could make a copy of SSAOW's Random Character Crate script and restrict the probabilities to a 100% chance of getting an SBH.

http://img82.imageshack.us/img82/8886/CommandoSig.jpg
Re: Stealth Suit Drop [message #217434 is a reply to message #216300] Tue, 05 September 2006 05:29 Go to previous messageGo to next message
sycar is currently offline  sycar
Messages: 144
Registered: February 2006
Location: Reading, UK
Karma: 0
Recruit
or you could just create a temp of one of the key cards or something and when they die, they drop that? and attach to the keycard the change character script?

then no scripting is required, just modding in level edit?
Re: Stealth Suit Drop [message #217455 is a reply to message #217434] Tue, 05 September 2006 08:43 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
does Change_character_on_pickup exists?

Moding can be real Fun...
Re: Stealth Suit Drop [message #217933 is a reply to message #216300] Thu, 07 September 2006 15:19 Go to previous messageGo to next message
matty3k10 is currently offline  matty3k10
Messages: 96
Registered: January 2005
Location: Michigan
Karma: 0
Recruit
Attach "TDA_Stealth_Armor" to the stealth suit and be sure to set the amount of time, that should turn the player stealth the second he or she picks it up, but remember if a client does not have BHS.dll he or she will see that player as not being stealth.

Also make sure you check the "AlwaysAllowGrant" box under settings on the stealth suit.
Re: Stealth Suit Drop [message #217959 is a reply to message #216300] Thu, 07 September 2006 17:49 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
Strange, I did just as you said...

I added TDA_Stealth_Armor to the Stealth Suit.
Then I made it so when the SBH dies he drops the Powerup.
Only nothing dropped Huh


http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Stealth Suit Drop [message #217997 is a reply to message #216300] Fri, 08 September 2006 04:28 Go to previous messageGo to next message
sycar is currently offline  sycar
Messages: 144
Registered: February 2006
Location: Reading, UK
Karma: 0
Recruit
what preset/object are you using as the drop item. as you actaully have to select a preset to be dropped. which you attach the tda_stealth script onto.

sorry if you've already done this, but worth while checking.

simon
Re: Stealth Suit Drop [message #217998 is a reply to message #216300] Fri, 08 September 2006 04:47 Go to previous messageGo to next message
matty3k10 is currently offline  matty3k10
Messages: 96
Registered: January 2005
Location: Michigan
Karma: 0
Recruit
Sounds to me like you ether arnt typing in the correct preset name or the drop script you are using drops the item to soon after death and your corpse picks up the power up.
Re: Stealth Suit Drop [message #218136 is a reply to message #217998] Fri, 08 September 2006 16:13 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
matty3k10 wrote on Fri, 08 September 2006 04:47

Sounds to me like you ether arnt typing in the correct preset name or the drop script you are using drops the item to soon after death and your corpse picks up the power up.


It proboly does pick it up instantly... As i have seen first hand in other tests. Im positive that the name is correct. How could I set like a 2-3 sec timer on the spawn?


http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Stealth Suit Drop [message #228791 is a reply to message #216408] Mon, 30 October 2006 22:45 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
Reborn wrote on Thu, 31 August 2006 04:34

You could however change there model to the sbh when they pick it up, and keep there original weapons...


How? Also is it possible for them to keep the same health and armor add ons they've picked up before they got the stealth suit?


Level edit is my play ground
Re: Stealth Suit Drop [message #228793 is a reply to message #216300] Mon, 30 October 2006 23:17 Go to previous messageGo to next message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma: 0
Recruit
void s_stealth_suit::Custom(GameObject *obj, int message, int param, GameObject *sender)
{
	char ss[100];
	if (message == 1000000025)
	{
		if (strstr(Commands->Get_Preset_Name(obj),"POW_Stealth_Suit"))
		{
			Create_2D_WAV_Sound_Player(sender,"m00puss_aqob0002i1evag_snd.wav");
			sprintf(ss,"msg %s(%s) acquired a Stealth Suit.",Get_Player_Name(sender)),Commands->Get_Player_Type(sender)==0?"Nod":"GDI";
			Change_Character(obj,"CnC_Nod_FlameThrower_2SF");
			Console_Input(ss);
		}
	}
}
ScriptRegistrant<s_stealth_suit> s_stealth_suit_Registrant("s_stealth_suit","");


class s_stealth_suit : public ScriptImpClass {
	void Custom(GameObject *obj, int message, int param, GameObject *sender);
};


download: http://www.game-maps.net/ren/modding/stealthsuit_ssaow15_scr ipts.dll
Put in server dir, put in leveledit scripts dir, attach script to
pow_stealth_suit, make sure that "Always Allow Grant" is enabled on powerup.

Use KAK_Drop_Object_Death to make the SBH drop the POW_Stealth_Suit, you can
also set a probability there.

You can just replace your current ssaow scripts.dll, everything
should work fine. Do make a backup copy of your current scripts.dll though just in case... i havent tested this script
but im sure it should work.

[Updated on: Mon, 30 October 2006 23:40]

Report message to a moderator

Re: Stealth Suit Drop [message #228794 is a reply to message #218136] Mon, 30 October 2006 23:17 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3809
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
ghost wrote on Fri, 08 September 2006 17:13

matty3k10 wrote on Fri, 08 September 2006 04:47

Sounds to me like you ether arnt typing in the correct preset name or the drop script you are using drops the item to soon after death and your corpse picks up the power up.


It proboly does pick it up instantly... As i have seen first hand in other tests. Im positive that the name is correct. How could I set like a 2-3 sec timer on the spawn?


Instead you could simply make it spawn an invisible box(which has no collision settings and is not target-able), which would destroy itself after a few seconds (using SUR_Timed_Death) and then it would spawn the powerup on its death. Its pretty simple that why, and I know it works.


[Updated on: Mon, 30 October 2006 23:17]

Report message to a moderator

Re: Stealth Suit Drop [message #228796 is a reply to message #216300] Mon, 30 October 2006 23:49 Go to previous messageGo to next message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma: 0
Recruit
Change_Character(sender,"CnC_Nod_FlameThrower_2SF");

Redownload the dll, updated a minor typo Razz
Re: Stealth Suit Drop [message #228853 is a reply to message #216300] Tue, 31 October 2006 12:22 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
I've downloaded the dll and installed it into my scripts folder in l.e. but I don't know the exact script name, what is it?

O.K., I removed my other scripts from that folder to find the specific script without having to search through a thousand scripts and looked again just to find no scripts in there :/ .
Are you sure that's the right script d.l.? (BTW, I'm using l.e. for this, does this change anything?)


Level edit is my play ground

[Updated on: Tue, 31 October 2006 12:48]

Report message to a moderator

Re: Stealth Suit Drop [message #228856 is a reply to message #216300] Tue, 31 October 2006 12:53 Go to previous messageGo to next message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma: 0
Recruit
s_stealth_suit

You have to have scripts.dll(the one with stealth suit in it), scripts2.dll
and bhs.dll in your LE\Mod\scripts folder.

Attach the script to the pow_stealth_suit, save presets and upload it to the server. Should work then. (server needs dll too btw).
Re: Stealth Suit Drop [message #228860 is a reply to message #216300] Tue, 31 October 2006 13:09 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
no, i mean the script that is supposed to change your character without losing weapons/armor, the one that's supposed to be in the stealthsuit_ssaow15_scripts.dll; it doesn't even seem to show any scripts in there that i can attach to the suit by itself. you had said before about the Change_Character, but i don't know the exact name and that name alone can't be found even with all the scripts in place.

Level edit is my play ground
Re: Stealth Suit Drop [message #228863 is a reply to message #216300] Tue, 31 October 2006 13:40 Go to previous messageGo to next message
FeaR is currently offline  FeaR
Messages: 87
Registered: January 2006
Location: Netherlands
Karma: 0
Recruit
http://www.game-maps.net/ren/modding/ssle.gif

You are not copying the dll file correct into your \scripts\ folder
from leveledit moddir then.

This script will change the character to an sbh, they will not
keep their weapons.

"mod" POW_Stealth_Suit
on settings tab enable "Always allow grant"
on scripts tab add "s_stealth_suit"

It works...

[edit]You dont have to enter any parameters, just put the script
in the scripts tab on pow_stealth_suit and save presets, thats it.

Only you have to make the sbh drop the suit when they get killed,
you can use KAK_Drop_Object_Death for this.

[edit2]Are you renaming it to scripts.dll? And is bhs.dll and scripts2.dll present in \scripts\ folder as well?

Copy bhs.dll and scripts2.dll from the server to the scripts folder if they are missing.

[Updated on: Tue, 31 October 2006 13:46]

Report message to a moderator

Re: Stealth Suit Drop [message #228897 is a reply to message #216300] Tue, 31 October 2006 21:49 Go to previous messageGo to next message
Stallion is currently offline  Stallion
Messages: 222
Registered: April 2006
Karma: 0
Recruit
I had actually messed up by not renaming it to scripts.dll, so I'll check that out, but how do I do this:

Reborn wrote on Thu, 31 August 2006 04:34

You could however change there model to the sbh when they pick it up, and keep there original weapons...


Thanks for the help you've given already, and while I know about the stuff on attaching the script I didn't know about that script or needing to rename it. Even though it's not exactly the one I had been looking for I'll likely find a use for it in my map.


Level edit is my play ground

[Updated on: Tue, 31 October 2006 21:51]

Report message to a moderator

Re: Stealth Suit Drop [message #242228 is a reply to message #216300] Tue, 30 January 2007 09:20 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
WOW little late reaction I admit, but this is just what didn't work on my server. Now it should work I guess!
Re: Stealth Suit Drop [message #242922 is a reply to message #216300] Fri, 02 February 2007 08:47 Go to previous messageGo to previous message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
Where is the KAK_Drop_Object_Death? Can't find it...
Previous Topic: Bunch of HQ APB screens
Next Topic: Sky Background settings
Goto Forum:
  


Current Time: Fri Nov 15 16:57:31 MST 2024

Total time taken to generate the page: 0.01193 seconds