Files

> > CS2D > Lua Scripts > [EngiN33R] Custom Weapons
Files overviewCS2D overviewLua Scripts overview

English [EngiN33R] Custom Weapons >

140 comments155 kb, 1,836 Downloads

old [EngiN33R] Custom Weapons

EngiN33R
Moderator Off Offline

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.

Console commands >


To-do list:
flame Make custom weapons hurt buildings
flame Implement support for projectile-based custom weapons
flame 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.
edited 4×, last 05.07.12 05:57:14 pm
Approved by Yates

Download Download

155 kb, 1,836 Downloads

Comments

140 comments
Page
To the start Previous 1 2 3 4 5 6 7 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

RatedX
User Off Offline

Love it.
I like it!

old

robed
User Off Offline

please keep updating this file.. my mod depends on this
I like it!

old

IPC CS2D
User Off Offline

i can make weapon with this lua. Thanks .
I like it!

old

3RROR
User Off Offline

@user MrRL144: I guess it's normal, the server doesn't recognize but the lua does.

old

tom282f3
User Off Offline

@user MrRL144: Try "lua cequip(ID,CWEAPON ID,AMMO,BACKUP AMMO)"
I like it!

old

MrRL144
User Off Offline

Im a retard at this but when i try try the console command i get Error unknown command 'cequip' (cequip)

old

Sparty
Reviewer Off Offline

...@user OlaFPhp: ..I Hope you read before you write..
user EngiN33R has written
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.
I like it!

old

OlaFPhp
User Off Offline

Can you make it buyable?
I like it!

old

Vetle
BANNED Off Offline

Thank you engi
I like it!

old

tom282f3
User Off Offline

God! IThis finally released. Lov u.

BTW 4 engin33r: you should combine this with laser mod
I like it!

old

Blpzz9
User Off Offline

thanks @user Misho: NOW I CAN UsE IT :3
I like it!

old

b4by0512
User Off Offline

How to equip weapons in lua when playing?
I like it!

old

michal16202
User Off Offline

edited this part of the file as I mentioned earlier and did not override anything, it's like it was before

old

Misho
User Off Offline

user Blpzz9 Your first weapon will be with ID 1.
2nd weapons will be with ID 2. 3rd weapon will be with ID 3, etc.
Then you use cequip <id> <weapon ID>
I like it!

old

Blpzz9
User Off Offline

wow thanks alot! but one question! how u know ur weapons iD?
I like it!

old

EngiN33R
Moderator Off Offline

Sorry, I didn't see your comment when I wrote mine.

old

b4by0512
User Off Offline

you say for me?
I like it!

old

EngiN33R
Moderator Off Offline

@user michal16202: Would you care to elaborate how exactly it doesn't work, my dear fellow?

old

b4by0512
User Off Offline

I very thanks you because I need to this lua use for my upcoming server. I hope when the server is launched you will enjoy it and enjoy your Lua.
I like it!
To the start Previous 1 2 3 4 5 6 7 Next To the start