Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Weapon Drops/Keeping the Weapon
Re: Weapon Drops/Keeping the Weapon [message #361319 is a reply to message #361001] Thu, 04 December 2008 06:44 Go to previous messageGo to previous message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma:
General (1 Star)
You could also replace

		if (rnd <= 5)
		{
			Commands->Apply_Damage(sender,99999,"Explosion_Mine_Remote_01",0);

			char input[256];
			_snprintf(input,sizeof(input), "ppage %d [RC] You picked up a bomb-backpack, haha its blowed.", Get_Player_ID(sender));
			Console_Input(input);
		}


With

		if (rnd <= 0)
		{
			Commands->Apply_Damage(sender,99999,"Explosion_Mine_Remote_01",0);

			char input[256];
			_snprintf(input,sizeof(input), "ppage %d [RC] You picked up a bomb-backpack, haha its blowed.", Get_Player_ID(sender));
			Console_Input(input);
		}


So you can easily set it back on if you deside to use it later Wink
This is always FALSE because the random number can't become 0. The range is only 1-100 Razz (for all ppl that don't know much about programming)


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg
 
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: How to animate a flag?
Next Topic: Help installing LUA 5?
Goto Forum:
  


Current Time: Sun Dec 22 05:18:54 MST 2024

Total time taken to generate the page: 0.01118 seconds