Author Topic: Can somebody help me with scripting?  (Read 647 times)

I hate how weak the M16 is. It only kills like 2 people a clip. :/
So, i was wandering if anybody could replace the script on the M16 or all the guns to make it cause' more damage per-bullet. It'd be helpful! :D
And the m16 is from the L4D2 Weapons Pack!
Thanks so much! :D


So, i was wandering if anybody could replace the script
Quote
Can somebody help me with scripting?
Whats wrong here?
EDIT: Also if its to HELP it does in help.

Whats wrong here?
EDIT: Also if its to HELP it does in help.
wouldn't this belong in a modifcation section?

Well...

If you extract the files from the .zip, one of the .cs files will define the weapon.

Somewhere in it, there will be a line similar to
directDamage        = 30;

Change the number to increase the damage. I reccomend something around 1000. If people complain about it killing too quickly, just ignore them, because the alternative is to reduce the number to some sane ammount like 50 where it takes a full *two* hits to kill.

Seriously, though, it's as easy as finding the right line to change. Look for the datablock for [something]Projectile, and it defines plenty of numbers to tweak and adjust.


Just don't think that people will do it for you, especially if you aren't happy with the first change.


(Also, make sure that if a line ended in a semicolon (;), that once you edit it, it still ends in a semicolon. If you don't, Bad things will happen (like the add-on not loading correctly, if at all))

Go to the console thingy.
Put in the following:
M16image.projectile = Gunprojectile;
Put that in, it has to be exact or it won't work.

Pancho,
Everyone has good ideas but here is a good one put this into console:
M16image.projectile = RPGproj;
That will kill your enemies with ease.

Happy killing,
General Hack