Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Weapons scripts?
Weapons scripts? [message #216639] Fri, 01 September 2006 06:41 Go to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Hey,

if I in game typed !railgun, I would like become a railgun.

(It's for my DeathMatchMod)

How to?


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Fri, 01 September 2006 06:47]

Report message to a moderator

Re: Weapons scripts? [message #216640 is a reply to message #216639] Fri, 01 September 2006 06:45 Go to previous messageGo to next message
Stumpy is currently offline  Stumpy
Messages: 93
Registered: May 2005
Karma: 0
Recruit

sorry, we dont support cheats here. Tell Me

Visit and dream about it http://pb-live.team64.eu
Re: Weapons scripts? [message #216641 is a reply to message #216639] Fri, 01 September 2006 06:46 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

It's for my ServerSideMod.

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: Weapons scripts? [message #216643 is a reply to message #216639] Fri, 01 September 2006 06:52 Go to previous messageGo to next message
Stumpy is currently offline  Stumpy
Messages: 93
Registered: May 2005
Karma: 0
Recruit

and? This still would be a cheater game. And it would be very unfair for somebody who dont know the command. Its just like to create a command like !iwin and you receive 40000 points and the map ends Satisfied

Visit and dream about it http://pb-live.team64.eu
Re: Weapons scripts? [message #216644 is a reply to message #216639] Fri, 01 September 2006 06:53 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

He need money to use it. Its a public command, all players can use that.

[BR] !commands displays all available commands


Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu

[Updated on: Fri, 01 September 2006 06:56]

Report message to a moderator

icon6.gif  Re: Weapons scripts? [message #216646 is a reply to message #216639] Fri, 01 September 2006 06:57 Go to previous messageGo to next message
Stumpy is currently offline  Stumpy
Messages: 93
Registered: May 2005
Karma: 0
Recruit

Theres currently no weapon script or anyother script like that available, the only way you can do this is via the Chathook. Look into SSAOW 1.5 (aow.cpp, crate.cpp)there are some examples who to some commands.

Visit and dream about it http://pb-live.team64.eu
Re: Weapons scripts? [message #216658 is a reply to message #216646] Fri, 01 September 2006 07:58 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
what do you exactly mean with "become a railgun"?

Moding can be real Fun...

[Updated on: Fri, 01 September 2006 07:58]

Report message to a moderator

Re: Weapons scripts? [message #216712 is a reply to message #216639] Fri, 01 September 2006 15:17 Go to previous messageGo to next message
FynexFox is currently offline  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 #216716 is a reply to message #216639] Fri, 01 September 2006 15:28 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
this can be easily done in scripts.dll, but is there a powerup for railgun and does it work?
Re: Weapons scripts? [message #216718 is a reply to message #216639] Fri, 01 September 2006 15:34 Go to previous messageGo to next message
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 #216725 is a reply to message #216639] Fri, 01 September 2006 16:06 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
but unfortanetly as i found out some of the powerups dont work
Re: Weapons scripts? [message #216726 is a reply to message #216639] Fri, 01 September 2006 16:06 Go to previous messageGo to next message
ghost is currently offline  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.

http://img287.imageshack.us/img287/9936/davesigea4rw5.png
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 Go to previous messageGo to next message
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 #216777 is a reply to message #216728] Fri, 01 September 2006 23:36 Go to previous messageGo to next message
LR01 is currently offline  LR01
Messages: 842
Registered: April 2006
Location: The Netherlands
Karma: 0
Colonel
and the client need only bhs.dll

Moding can be real Fun...
Re: Weapons scripts? [message #216801 is a reply to message #216639] Sat, 02 September 2006 03:31 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Can someone post the command for Visual Studio?

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: Weapons scripts? [message #216936 is a reply to message #216801] Sat, 02 September 2006 16:44 Go to previous messageGo to next message
Ivan275 is currently offline  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 #216955 is a reply to message #216936] Sat, 02 September 2006 18:32 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Ivan275 wrote on Sun, 03 September 2006 00:44

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?



rofl
Re: Weapons scripts? [message #216972 is a reply to message #216936] Sat, 02 September 2006 19:56 Go to previous messageGo to next message
ghost is currently offline  ghost
Messages: 437
Registered: May 2005
Location: California
Karma: 0
Commander
Ivan275 wrote on Sat, 02 September 2006 16:44

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?




Just pure spam. I myself began laughing at that line
if I in game typed !railgun, I would like become a railgun.


I doubt he would want to become one Tell Me


http://img287.imageshack.us/img287/9936/davesigea4rw5.png
Please visit my forums at: RenForce
Creator of the CrazyAOW Mod
Re: Weapons scripts? [message #216993 is a reply to message #216639] Sat, 02 September 2006 20:56 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
If you know bmruze, he's made a command to become a railgun.

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Weapons scripts? [message #217004 is a reply to message #216639] Sun, 03 September 2006 01:30 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

The railgun spawns if i typed !railgun and i have 1000 credits

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: Weapons scripts? [message #217017 is a reply to message #217004] Sun, 03 September 2006 03:22 Go to previous messageGo to next message
Ivan275 is currently offline  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
Re: Weapons scripts? [message #217046 is a reply to message #216639] Sun, 03 September 2006 08:26 Go to previous message
SODPaddy is currently offline  SODPaddy
Messages: 233
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Thank you Smile

Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Previous Topic: mod help
Next Topic: Tiberium Desolation is dead
Goto Forum:
  


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

Total time taken to generate the page: 0.01239 seconds