Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Weapon Coding

For all your hosting needs.

Weapon Coding

Postby LinktersHD » Mon Jul 23, 2012 5:18 pm

Hi guys,
I'm quite new to coding and i'm making a script but i was wondering what the code will be for a weapon thing i'm doing:
For example i know SMG is:
Code: Select all
weapon = RIFLE_WEAPON

But would:
Shotgun be -
Code: Select all
weapon = SHOTGUN_WEAPON

SMG be -
Code: Select all
weapon = SMG_WEAPON

Thanks Alex.
Nuketown map is out!:
viewtopic.php?f=67&t=11021]

Image
Image
User avatar
LinktersHD
Member
 
Posts: 1356
Joined: Fri Mar 30, 2012 2:41 pm
Location: Reigate, England

Re: Weapon Coding

Postby HoboHob » Sat Aug 04, 2012 12:10 am

You can't make new weapons.
Image
User avatar
HoboHob
Member
 
Posts: 834
Joined: Sat Mar 10, 2012 1:32 am

Re: Weapon Coding

Postby yako » Sat Aug 04, 2012 4:12 am

Sorry, I don't known.
Image
yako
Member
 
Posts: 22
Joined: Fri May 04, 2012 10:48 am

Re: Weapon Coding

Postby GreaseMonkey » Sat Aug 04, 2012 1:08 pm

HoboHob wrote:You can't make new weapons.


Not entirely true, but without clientside mods (and if you do this, please just edit the client.exe so the checksum is different) you are limited in what you can do.

If you REALLY wanted to, you could do a laser designator by tracking the shot button and the position someone is shooting at... or maybe a laser guided missile if you're being inventive... you WILL need to be creative, though (although an RPG is pretty doable AFAIK).

And of course you can always edit the damage values. I don't know why they're stored in the client, as they're purely serverside, so that shouldn't require any client mods.

It's a pity recoil + spread is clientside :(
GreaseMonkey
Bastion Member
 
Posts: 84
Joined: Tue Dec 13, 2011 10:14 pm
Location: ←        

Re: Weapon Coding

Postby EssigGurkenFred » Sat Aug 04, 2012 3:25 pm

With my informations we weren´t even able to script new weapons, are we?
User avatar
EssigGurkenFred
Member
 
Posts: 1370
Joined: Tue Jan 31, 2012 6:47 pm
Location: At Home


Return to Server



Who is online

Users browsing this forum: No registered users and 4 guests

cron