Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts Part 3
Re: Scripts Part 3 [message #267408 is a reply to message #267331] Tue, 19 June 2007 16:11 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
joe937465 wrote on Tue, 19 June 2007 16:01

1) ok this ones importent for the guys who are asking me to have
umm we did the boss and !spy now how can we do a command to alowed u to spectate anywhere on the map?



I created a spectate mode and added it to the source.
(All of them are bound to the name "ren00b", but it also works for "nick2" and "nick£", you will need to add other peoples names instead of them there, and if you want more then copy how I did it for these two example placeholders.

I really can't stress enough now how much you need to secure those nick names and make them !auth themselves, if someone joined your server via ip and stole the nick whilst no one noticed they could ruin the game for people.

Type "!spec1", then type "!spec2" in team chat. This will place you as neutral, remove your model, clear your weapons, and allow you to fly as if you are a helicopter, and base defence will ignore you.
Type "!unspecgdi" to return to the GDI side after spectating, and type "!unspecnod" to return to nod after spectating.

Some team nuetral start up positions are under the map, so i shoved you up in the air by 80 on the z axis. This maybe un acceptable in some maps, i didn't try them all. You may wish to beta test this out and adjust accordingly.

Download link to new source code and server files:
http://www.mp-gaming.com/reborn/coderelease/JoesSSAOW3.zip

joe937465 wrote on Tue, 19 June 2007 16:01


2) the code for the spy how can i add a script underit?


This is most of the spy crate code:


else if	((RandomIntCrate <=	(percent+=Crate_Spy)) && (Crate_Spy	> 0))
			{
				if (Settings->GameMode != 1) goto CrateStart;
				if (Settings->Gamelog) 
				{
					char Message[512];
					Vector3	pos;
					pos	= Commands->Get_Position(sender);
					sprintf	(Message, "CRATE;SPY;;%d;%s;%f;%f;%f;%f;%f;%f;%d", Commands->Get_ID(sender), Commands->Get_Preset_Name(sender),	pos.Y,pos.X,pos.Z, Commands->Get_Facing(sender), Commands->Get_Max_Health(sender),Commands->Get_Max_Shield_Strength(sender),Get_Object_Type(sender));
					WriteFile(Message);
				}
				Change_Character(sender,"CnC_Nod_FlameThrower_2SF");
				Commands->Set_Is_Visible(sender,false);
///////////Add your scripts to the (sender) here///////////////////
				sprintf(message,"A %s player picked up a Spy Crate.",Commands->Get_Player_Type(sender)==0?"Nod":"GDI");
				FDSMessage(message,"_CRATE");
				sprintf(message,"ppage %d [Crate] You got the Spy Crate, base defenses will ignore you until you die, buy a new character or destroy a building.",Get_Player_ID(sender));
				sprintf(message2,"msg Crate: Oh no! A %s player just got a spy crate, better watch your base %s!",Commands->Get_Player_Type(sender)==0?"Nod":"GDI",Commands->Get_Player_Type(sender)==0?"GDI":"Nod");
				Console_Input(message2);
			}



And yes I did notice the sig =]

What is the site for the people you are making this mod? Please post a link.

Also, I noticed that I am doing all your work for you, and you have not improved your lazy typing. You still insist on typing like you are sms text messaging a friend. It is important you improve this, as people will take you for an idiot otherwise and not help you. Please just take the extra couple of minutes to go over your posts before submitting them. I have spent litterally hours and hours helping you now. This is the least you can do.



[Updated on: Tue, 19 June 2007 16:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message icon12.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GB
Next Topic: SSGM, previously SSAOW, Version 2.0
Goto Forum:
  


Current Time: Sun Dec 22 00:16:43 MST 2024

Total time taken to generate the page: 0.01267 seconds