[EngiN33R] Custom Weapons 
140 comments Finally, I'm uploading the long-awaited (or not so much so now) script that is the custom weapons mod!
This modification allows you to add your very own weapons to the game. Naturally, owing to CS2D's limitations, it doesn't simulate real weapons to the fullest extent, but it's the first step toward that, and dare I say, quite a big one. Hopefully now all the whiners will stop whining as much.
To-do list:
Make custom weapons hurt buildings
Implement support for projectile-based custom weapons
Implement support for melee custom weapons
Remove the bufferimg workaround and do the bloody thing properly
If you have the need to edit the script, the code is commented in the most part; if you do not understand something - let me know in PM. If you have, for some reason, the intention to upload your modified script - I do not prohibit that, just be so kind as to mention what you based your edit on.
This is, of course, a beta version, and its features are quite limited. I will continue developing it further, the next thing to do is to add projectile-based custom weapon functionality. Please do leave feedback and report bugs if such are found.
EDIT: My apologies, I've now uploaded the missing files. The archive should be complete now and the script should work properly.
Another missing sprite has been added for the ammo box.
This modification allows you to add your very own weapons to the game. Naturally, owing to CS2D's limitations, it doesn't simulate real weapons to the fullest extent, but it's the first step toward that, and dare I say, quite a big one. Hopefully now all the whiners will stop whining as much.
To-do list:




If you have the need to edit the script, the code is commented in the most part; if you do not understand something - let me know in PM. If you have, for some reason, the intention to upload your modified script - I do not prohibit that, just be so kind as to mention what you based your edit on.
This is, of course, a beta version, and its features are quite limited. I will continue developing it further, the next thing to do is to add projectile-based custom weapon functionality. Please do leave feedback and report bugs if such are found.
EDIT: My apologies, I've now uploaded the missing files. The archive should be complete now and the script should work properly.
Another missing sprite has been added for the ammo box.
edited 4×, last 05.07.12 05:57:14 pm

Comments
140 commentsLog in!
You need to log in to be able to write comments!Log in
it didn't work, believe me, i tried to make several modifications, initially i didn't modify the script, obviously i changed folders and files, later then i tried to edit the script with a simple change like: P250 to p250.
I will try to find the error and, if I do, I will modify this message
I will try to find the error and, if I do, I will modify this message
I cannot spawn in any of the weapons via the command formats.
Code:
1
ERROR: Unknown command 'cequip' (cequip P250 13 52 ).

NICE!
Admin/mod comment:

It looks good but i dont know how to use it
I have original file(changed ID weapons), and what now? I was writing in console commands and nothing. Weapon's code:


Is this still being worked on? And can I ask what does rfr mean?
EDIT: Also can I use multiple weapons with one ammo type? And how can I spawn an ammo box.
EDIT: Also can I use multiple weapons with one ammo type? And how can I spawn an ammo box.

Freaki'n awesome!... Very Smart you are really an Engineer hey what's your course, Joke :D... 100/5