Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Weapons scripts?
Re: Weapons scripts? [message #217017 is a reply to message #217004] Sun, 03 September 2006 03:22 Go to previous messageGo to previous message
Ivan275 is currently offline  Ivan275
Messages: 41
Registered: August 2006
Karma:
Recruit
#1 open scripts.vcproj
#2 go to aow.cpp
#3 find
void Chat(int ID, int Type, const wchar_t *Msg) {
	if (Type == 2) return;


#4 change to
void Chat(int ID, int Type, const wchar_t *Msg) {
	if (Type == 0){
		const char *Msg2 = WideCharToChar(Msg);
		if (stricmp(Msg2,"!railgun") == 0) {
			if (Commands->Get_Money(Get_GameObj(ID)) >= 1000){
				Commands->Give_Powerup(Get_GameObj(ID),"POW_RailGun_Player",true);
				Commands->Give_Money(Get_GameObj(ID),(float)(-1000),false);
			}
		}
		else if (stricmp(Msg2,"!pic") == 0) {
			if (Commands->Get_Money(Get_GameObj(ID)) >= 1000){
				Commands->Give_Powerup(Get_GameObj(ID),"POW_PersonalIonCannon_Player",true);
				Commands->Give_Money(Get_GameObj(ID),(float)(-1000),false);
			}
		}
	}
	if (Type == 2) return;


#5 build scripts
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon6.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
Previous Topic: mod help
Next Topic: Tiberium Desolation is dead
Goto Forum:
  


Current Time: Sun Nov 17 22:16:47 MST 2024

Total time taken to generate the page: 0.01025 seconds