Forum

> > CS2D > General > Where Are The Weapons In CS2D?
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Where Are The Weapons In CS2D?

3 replies
To the start Previous 1 Next To the start

old Where Are The Weapons In CS2D?

NanuPlayer
User Off Offline

Quote
hi, I was wondering where are the weapons located in the game? Is it possible to change/add weapons? Are they inside the .exe, or located somewhere else?

And no I’m not asking for a new weapon script, I’m talking about the weapons that are already in the game.

old Re: Where Are The Weapons In CS2D?

Mami Tomoe
User Off Offline

Quote
Weapons are hard-coded into the game.
You cannot add more items into the game.

Like you suspected, the actual weapon behaviour is coded within the game executable.

Assuming you don't want to mess with Lua scripting, there are still some things you can change/control:

Weapon graphics can be changed in
gfx/weapons
.
Weapon sounds can be changed in
sfx/weapons
.

Weapon damage can be changed via cs2d cmd mp_wpndmg, cs2d cmd mp_wpndmg_z1 and cs2d cmd mp_wpndmg_z2.

To manage the buy menu:
cs2d cmd mp_buymenu, cs2d cmd mp_unbuyable

Weapon fire delay can be changed:
If cs2d cmd mp_recoil is set to
0
, edit
sys/weapons.cfg
.
If cs2d cmd mp_recoil is set to
1
, edit
sys/weapons_recoil.cfg
.

Lastly, if cs2d cmd mp_recoil is set to
1
, you may also edit the accuracy, recover and attack behaviours for the weapons.

old Re: Where Are The Weapons In CS2D?

Mami Tomoe
User Off Offline

Quote
Unfortunately it seems like the Tesla Coil is programmed differently than the other weapons, while it does follow the config in
weapons_recoil.cfg
(when cs2d cmd mp_recoil is set to
1
), the underlying issue is still present.

You could alternatively try and use various "hacks"* to try and mitigate the issues, but this is a bug within the game itself.

* Using cs2d lua hook attack with cs2d cmd sethealth & cs2d lua cmd image to simulate the lost behaviour.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview