Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Code Release - God Crate
Code Release - God Crate [message #315988] Thu, 07 February 2008 12:12 Go to next message
ExEric3 is currently offline  ExEric3
Messages: 746
Registered: February 2005
Location: Slovakia
Karma: 0
Colonel
Maybe others have another codes but I decide release my own. This code was taken from SSAOW v1.3.4 but I added here something.

This is for people who like to mod their server scripts.dll and are running SSGM.
Main Code:

			else if ((RandomIntCrate <= (percent+=Settings->CrateGod)) && (Settings->CrateGod > 0)) {
				StrFormat2(message2,"%ls picked up a God Crate.",Get_Wide_Player_Name(sender));
				if (Commands->Get_Player_Type(sender) == 1) {
					Change_Character(sender,"CnC_GDI_RocketSoldier_2SF_Secret");
					Commands->Clear_Weapons(sender);
					Commands->Give_Powerup(sender,"POW_VoltAutoRifle_Player",true);
					Commands->Give_Powerup(sender,"POW_RamjetRifle_Player",true);
					Commands->Give_Powerup(sender,"POW_Railgun_Player",true);
					Commands->Select_Weapon(sender,"Weapon_RamjetRifle_Player");
					StrFormat2(message1,"ppage %d [Crate]: You just got a God Crate. You will be have more power to kill others.",Get_Player_ID(sender));
					Console_Input(StrFormat("msg [Crate]: Warning! A %ls player just got a God Crate, better watch your base %ls!",Get_Wide_Team_Name(Team),Get_Wide_Team_Name(PTTEAM(Team))).c_str());
				}
				else if (Commands->Get_Player_Type(sender) == 0) {
					Change_Character(sender,"CnC_Nod_RocketSoldier_3Boss_Secret");
					Commands->Clear_Weapons(sender);
					Commands->Give_Powerup(sender,"POW_VoltAutoRifle_Player",true);
					Commands->Give_Powerup(sender,"POW_RamjetRifle_Player",true);
					Commands->Give_Powerup(sender,"POW_Railgun_Player",true);
					Commands->Select_Weapon(sender,"Weapon_RamjetRifle_Player");
					StrFormat2(message1,"ppage %d [Crate]: You just got a God Crate. You will be have more power to kill others.",Get_Player_ID(sender));
					Console_Input(StrFormat("msg [Crate]: Warning! A %ls player just got a God Crate, better watch your base %ls!",Get_Wide_Team_Name(Team),Get_Wide_Team_Name(PTTEAM(Team))).c_str());
				}
				
				Commands->Set_Health(sender,800);
				Commands->Set_Shield_Strength(sender,800);
				
				Commands->Give_Powerup(sender,"POW_Pistol_Player",true);
				Commands->Give_Powerup(sender,"CnC_POW_MineRemote_02",true);
				Commands->Give_Powerup(sender,"CnC_POW_MineTimed_Player_02",true);
				Commands->Give_Powerup(sender,"CnC_MineProximity_05",true);

				Commands->Give_Powerup(sender,"CnC_POW_Ammo_ClipMax",false);
				Commands->Give_Powerup(sender,"CnC_POW_Ammo_ClipMax",false);
				Commands->Give_Powerup(sender,"CnC_POW_Ammo_ClipMax",false);
				Commands->Give_Powerup(sender,"CnC_POW_Ammo_ClipMax",false);
								
				if (Settings->Gamelog) {
					Vector3	pos	= Commands->Get_Position(sender);
					StrFormat2(message3,"CRATE;God;;%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));
				}
			}


You can add it under this crate code in gmcrate.cpp:

			else if ((RandomIntCrate <= (percent+=Settings->CrateThief)) && (Settings->CrateThief > 0)) {
				Commands->Give_Money(sender,(Commands->Get_Money(sender) * -1),false);
				StrFormat2(message2,"%ls picked up a Thief Crate.",Get_Wide_Player_Name(sender));
				StrFormat2(message1,"ppage %d [Crate]: You got the Thief Crate, you have lost all of your credits.",Get_Player_ID(sender));
				Console_Input(StrFormat("msg [Crate]: %ls picked up a Thief Crate and he lost all credits.",Get_Wide_Player_Name(sender)).c_str());
				Create_2D_Sound_Player(sender,"m00evag_dsgn0028i1evag_snd.wav");
				if (Settings->Gamelog) {
					Vector3	pos	= Commands->Get_Position(sender);
					StrFormat2(message3,"CRATE;THIEF;;%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));
				}
			}


Now, inside the definition of "void CrateSettings::Load()" copy and paste the following: (next under "CrateThief = INI->Get_Int("Crates","Thief",0);")

CrateGod = INI->Get_Int("Crates","God",0);


Now, inside the definition of "void Crate_Defaults()" copy and paste the following: (change any values needed to make them all add up to 100. Again next unde "Settings->CrateThief = 2;")

Settings->CrateGod = 1;


Now, inside the definition of "void Crate_Level_Loaded()" copy and paste the following: (next "+ Settings->ThiefCrate" and if its your last crate in your scripts)

+ Settings->CrateGod;


So thats all in gmcrate.cpp No we must edit gmcrate.h So now, inside the definition of "struct CrateSettings" copy and paste the following: (again next under "int CrateThief;")

int CrateThief;


You'll need to add some entries to the Crate Section in ssgm.ini So under [Crate] add (you can set higher number max to 100:

God=1


Thanks to reborn for help and his time.
I hope you will enjoy this.

Thanks.

ExEric3
Re: Code Release - God Crate [message #315995 is a reply to message #315988] Thu, 07 February 2008 12:38 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
omg u ripped us off...
Re: Code Release - God Crate [message #316055 is a reply to message #315995] Thu, 07 February 2008 16:45 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
SSnipe wrote on Thu, 07 February 2008 12:38

omg u ripped us off...


Wtf?


~Zack
Re: Code Release - God Crate [message #316058 is a reply to message #315988] Thu, 07 February 2008 17:09 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
Out of ssaow (1.4?)

goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: Code Release - God Crate [message #316060 is a reply to message #315988] Thu, 07 February 2008 17:25 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
thats the same god crate we had at xpz that matt3yk or what ever made it salmsot or pretty much the extact same lol but im jsut joking its a cool crate Smile
Re: Code Release - God Crate [message #316074 is a reply to message #316060] Thu, 07 February 2008 19:12 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
What does it do? Give a better description please. :/


Does it make you temporarily invincible or give you some kind of special character...?
Re: Code Release - God Crate [message #316104 is a reply to message #315988] Thu, 07 February 2008 21:47 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
gives u a secret char with lot of health and lot of armor and lot of weps enough to kill the building
Re: Code Release - God Crate [message #318226 is a reply to message #315988] Wed, 20 February 2008 18:34 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
yes he ripped us off.. and got it wrong... and i just started C++ 5 min ago Razz

ExEric3


So thats all in gmcrate.cpp No we must edit gmcrate.h So now, inside the definition of "struct CrateSettings" copy and paste the following: (again next under "int CrateThief;")

int CrateThief;




shouldnt that be:

int CrateGod;


???


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Code Release - God Crate [message #318248 is a reply to message #318226] Wed, 20 February 2008 22:26 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
halo2pac wrote on Wed, 20 February 2008 18:34

yes he ripped us off..


No one cares but you and SSnipe...

~Zack

[Updated on: Wed, 20 February 2008 22:27]

Report message to a moderator

Re: Code Release - God Crate [message #318268 is a reply to message #315995] Thu, 21 February 2008 00:57 Go to previous messageGo to next message
crazfulla is currently offline  crazfulla
Messages: 667
Registered: September 2006
Location: Aotearoa
Karma: 0
Colonel
SSnipe wrote on Thu, 07 February 2008 13:38

omg u ripped us off...

Dear forum member,

Thank you for your post! I, crazfulla, have evaluated it and provide the following report as a courtosey to you:

I found that your post was...
[ ] Incomprehensible due to spelling and gramatical errors.
[ ] Offensive towards other members of this community.
[ ] Adequately portraying your limited vocabulary.
[ ] Very convincing that you wish to remain banned.
[ ] A complete waste of time- why did I bother evaluating?
[ ] Inspiring to get ingame with you sometime.
[X] Attempting to make others look like idiots & backfiring.
[ ] In blatant disregard to the Sticky Threads.
[ ] Somewhat too revealing of your sexual fantasies.
[ ] Without the relevant facts or information required.
[X] So n00bish it makes the Anti-Cheat clan look cool.

You could improve your postings considerably by...
[ ] Including a few actual facts.
[ ] Taking remedial English lessons.
[X] Mentioning how pointless or idiotic your post is.
[ ] Refraining from screaming 'Mod Abuse'.
[ ] Using Leet Speak more often.
[ ] Including Screenshots, IRC logs and other such media.
[ ] Swearing more.
[ ] Reducing your rant to 5,000 words or less.
[ ] Previewing your posts before submitting.
[ ] Running your posts through a spellchecker.
[ ] Using famous quotes like "I am the master" or "Join our powerful clan".
[ ] Using religious or racial slurs so we can ban you now.
[ ] Using "O RLY", "OMGWTFBBQ", "ROFLCOPTER", "AYBABTU" etc more frequently.
[X] Using childish insults such as "silly mod person".
[X] Pretending to be a pirate.
[ ] Putting more than one emoticon/word in it.
[ ] Not trying to change the rules of a server which you do not pay for.
[ ] Actually finishing a map before you post a thread about it.
[ ] Using all capital letters.
[ ] Not dodging 1v1's.
[ ] Not double posting.

Please get...
[ ] A life.
[X] A grip.
[ ] A job.
[ ] A clue.
[ ] A girlfriend.
[X] Some balls.
[ ] Some lube for your dildo.
[ ] A basic knowledge of the game.

You should...
[ ] Not be so concerned about your recommendations or statistics.
[ ] Post this thread five more times in different sections.
[X] Take your medications.
[ ] Actually read the tutorials on RenHelp.net before saying they are of no value.
[ ] Always read the Sticky Threads before posting somthing that dumb/rude/obnoxious.
[ ] Contribute towards the n00bless servers.
[ ] Join the Renegade 1942 Development Team.
[ ] Join the Anti-Cheat clan.
[ ] Stop kicking/banning people for things like swearing or using CAPITALS.
[ ] Not imitate the ACK reply.
[X] Come out of the closet.
[ ] Realize that RenGuard doesn't work for everyone and it doesn't stop cheats.
[ ] Download Renegade IP to avoid the WOL bug rather than acusing mods of banning you.
[ ] Pay USBsatan for his services last night.
[ ] Not encourage cpjok.
[ ] Not use cheats.

Suggested other activities besides such posting:
[ ] Joining or starting a clan that isn't full of retards.
[ ] Actually learning how to make a map or mod, then making one.
[ ] Joining the NAVY.
[X] Watching Monty Python's "The Meaning Of Life".
[ ] Whoring Facebook applications or playing Runescape.
[X] Jumping out of a plane without a parachute
[ ] Playing in a different server.

You have...
[ ] passed.
[X] failed.
[ ] Five minutes to live.


"GEoDLeto wrote:"

so what you are saying it is gonna take even longer before this thing is finished
So the topic title should be changed to: a sucky little "teaser" from C&C Reborn has been released

"halo2pac wrote:"

Unless they are girls, I am not going to bone them.
Re: Code Release - God Crate [message #318282 is a reply to message #315988] Thu, 21 February 2008 05:51 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
ROFLCOPTER i love linkin park!~

and that was teh gayest reply i have ever seen o.0
silly noobs replies are for pros XD.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Code Release - God Crate [message #318294 is a reply to message #318268] Thu, 21 February 2008 08:10 Go to previous messageGo to next message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
crazfulla wrote on Thu, 21 February 2008 01:57

SSnipe wrote on Thu, 07 February 2008 13:38

omg u ripped us off...

Dear forum member,

Thank you for your post! I, crazfulla, have evaluated it and provide the following report as a courtosey to you:

I found that your post was...
[ ] Incomprehensible due to spelling and gramatical errors.
[ ] Offensive towards other members of this community.
[ ] Adequately portraying your limited vocabulary.
[ ] Very convincing that you wish to remain banned.
[ ] A complete waste of time- why did I bother evaluating?
[ ] Inspiring to get ingame with you sometime.
[X] Attempting to make others look like idiots & backfiring.
[ ] In blatant disregard to the Sticky Threads.
[ ] Somewhat too revealing of your sexual fantasies.
[ ] Without the relevant facts or information required.
[X] So n00bish it makes the Anti-Cheat clan look cool.

You coIuld improve your postings considerably by...
[ ] Including a few actual facts.
[ ] Taking remedial English lessons.
[X] Mentioning how pointless or idiotic your post is.
[ ] Refraining from screaming 'Mod Abuse'.
[ ] Using Leet Speak more often.
[ ] Including Screenshots, IRC logs and other such media.
[ ] Swearing more.
[ ] Reducing your rant to 5,000 words or less.
[ ] Previewing your posts before submitting.
[ ] Running your posts through a spellchecker.
[ ] Using famous quotes like "I am the master" or "Join our powerful clan".
[ ] Using religious or racial slurs so we can ban you now.
[ ] Using "O RLY", "OMGWTFBBQ", "ROFLCOPTER", "AYBABTU" etc more frequently.
[X] Using childish insults such as "silly mod person".
[X] Pretending to be a pirate.
[ ] Putting more than one emoticon/word in it.
[ ] Not trying to change the rules of a server which you do not pay for.
[ ] Actually finishing a map before you post a thread about it.
[ ] Using all capital letters.
[ ] Not dodging 1v1's.
[ ] Not double posting.

Please get...
[ ] A life.
[X] A grip.
[ ] A job.
[ ] A clue.
[ ] A girlfriend.
[X] Some balls.
[ ] Some lube for your dildo.
[ ] A basic knowledge of the game.

You should...
[ ] Not be so concerned about your recommendations or statistics.
[ ] Post this thread five more times in different sections.
[X] Take your medications.
[ ] Actually read the tutorials on RenHelp.net before saying they are of no value.
[ ] Always read the Sticky Threads before posting somthing that dumb/rude/obnoxious.
[ ] Contribute towards the n00bless servers.
[ ] Join the Renegade 1942 Development Team.
[ ] Join the Anti-Cheat clan.
[ ] Stop kicking/banning people for things like swearing or using CAPITALS.
[ ] Not imitate the ACK reply.
[X] Come out of the closet.
[ ] Realize that RenGuard doesn't work for everyone and it doesn't stop cheats.
[ ] Download Renegade IP to avoid the WOL bug rather than acusing mods of banning you.
[ ] Pay USBsatan for his services last night.
[ ] Not encourage cpjok.
[ ] Not use cheats.

Suggested other activities besides such posting:
[ ] Joining or starting a clan that isn't full of retards.
[ ] Actually learning how to make a map or mod, then making one.
[ ] Joining the NAVY.
[X] Watching Monty Python's "The Meaning Of Life".
[ ] Whoring Facebook applications or playing Runescape.
[X] Jumping out of a plane without a parachute
[ ] Playing in a different server.

You have...
[ ] passed.
[X] failed.
[ ] Five minutes to live.



It's even sadder when take time to post something like this.... but lol


http://s18.postimage.org/jc6qbn4k9/bricks3.png
Re: Code Release - God Crate [message #318313 is a reply to message #315988] Thu, 21 February 2008 12:07 Go to previous message
F1r3st0rm is currently offline  F1r3st0rm
Messages: 395
Registered: July 2007
Location: BS
Karma: 0
Commander
I'm pretty sure he copy-pasted it...

[Updated on: Thu, 21 February 2008 12:07]

Report message to a moderator

Previous Topic: Server Side Unlimited ammo mod
Next Topic: Battle For Dune update 13.
Goto Forum:
  


Current Time: Wed Aug 14 17:47:00 MST 2024

Total time taken to generate the page: 0.00841 seconds