|
|
|
|
|
|
|
Re: Weapons scripts? [message #216712 is a reply to message #216639] |
Fri, 01 September 2006 15:17 |
FynexFox
Messages: 138 Registered: May 2003
Karma: 0
|
Recruit |
|
|
If Im not mistaken I belive he means like a PT type thing. If you type in !commands it gives a list of commands that you can use, and maybe a price. And ingame if you type say !railgun if you have lets say 1500 credits, you'll get a rail gun in your inventory, thats my best guess.
|
|
|
|
Re: Weapons scripts? [message #216718 is a reply to message #216639] |
Fri, 01 September 2006 15:34 |
|
futura83
Messages: 1285 Registered: July 2006 Location: England
Karma: 0
|
General (1 Star) Viva la Resistance! |
|
|
there is:
POW_Railgun_Player
This is a signature. Reading this is wasting your time.
|
|
|
|
Re: Weapons scripts? [message #216726 is a reply to message #216639] |
Fri, 01 September 2006 16:06 |
ghost
Messages: 437 Registered: May 2005 Location: California
Karma: 0
|
Commander |
|
|
This can easly be done in another way. Adding switches. Although its alot differnt, It get the job done.
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
|
|
|
Re: Weapons scripts? [message #216728 is a reply to message #216639] |
Fri, 01 September 2006 16:10 |
|
futura83
Messages: 1285 Registered: July 2006 Location: England
Karma: 0
|
General (1 Star) Viva la Resistance! |
|
|
all he'd have to do is add the JFW_Powerup_Biy_Poke script with the parameters
Preset_name: POW_Railgun_Player
Cost: [integer >1]
Player type:
0=NOD
1=GDI
2=Both
This is a signature. Reading this is wasting your time.
|
|
|
|
|
Re: Weapons scripts? [message #216936 is a reply to message #216801] |
Sat, 02 September 2006 16:44 |
Ivan275
Messages: 41 Registered: August 2006
Karma: 0
|
Recruit |
|
|
TGPaddy wrote on Sat, 02 September 2006 03:31 | Can someone post the command for Visual Studio?
| OK lets do this really fast.
What version of scripts are you running on your server?
Do you have any basic C++ programing experience?
When you say "if I in game typed !railgun, I would like become a railgun." You want the player to get a railgun OR become and look like a railgun?
|
|
|
|
|
|
|
Re: Weapons scripts? [message #217017 is a reply to message #217004] |
Sun, 03 September 2006 03:22 |
Ivan275
Messages: 41 Registered: August 2006
Karma: 0
|
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
|
|
|
|