Forum

> > CS2D > General > how to change weapon values
Forums overviewCS2D overviewGeneral overviewLog in to reply

English how to change weapon values

27 replies
Page
To the start Previous 1 2 Next To the start

old closed how to change weapon values

phihung940
User Off Offline

Quote
I want to change weapon damage of MAC10 but when i type in console "mp_wpndmg mac10 30" the console said "ERROR: wpndmg - wpn 'Mac10' dose not exist!" but when i type for M4A1 it work ! =.=

so... what i gonna do now ?

Admin/mod comment

bad title. changed /DC

old Re: how to change weapon values

Crazyx
User Off Offline

Quote
phihung940 has written
Yes ! thank you for support hey ! how to edit price of weapon ? - i dont want creat a BIG new topic for this SMALL question

I think that's not possible.
Only building price.

1
mp_building_price "[i]building-name[/i]" "[i]building-price[/i]"

Building's don't use ID, only their real name.

old Re: how to change weapon values

SQ
Moderator Off Offline

Quote
xeNium has written
phihung940 has written
Yes ! thank you for support hey ! how to edit price of weapon ? - i dont want creat a BIG new topic for this SMALL question

I think that's not possible.

That's possible only with script.

old Re: how to change weapon values

phihung940
User Off Offline

Quote
@Blazzingxx: so ... can you help me make the script :-s ,

oh hey ! i have write the script like this:

parse("mp_wpndmg Wrench 65")
parse("mp_wpndmg "Mac" 30")

this is right ? i've check but not work ==!
edited 1×, last 23.10.09 09:48:48 am

old Re: how to change weapon values

DC
Admin Off Offline

Quote
the wrench thing is right I think. the mac thing not. however the whole code will probably not be executed due to the errors in the mac part.

• why are you using Lua and parse for simple cs2d settings?
you can insert cs2d commands into cs2d cfg files (sys/autoexec.cfg) directly without having to wrap parse around it!
1
2
mp_wpndmg Wrench 65
mp_wpndmg "Mac 10" 30
> much easier, less error prone!

• the weapon is not called "Mac". it's "Mac 10"

• if you really need to use Lua: you are using " four times in one string. this can't work. Lua will parse it this way:
parse("mp_wpndmg "Mac" 30")
the bold part will be the string parameter for parse (so it's like entering "mp_wpndmg " in the console - which does nothing). the rest will be Mac" 30") which doesn't make sense for Lua. Instead use different quotation marks:
parse('mp_wpndmg "Mac 10" 30')

old Re: how to change weapon values

SQ
Moderator Off Offline

Quote
phihung940 has written
@DC: thank for support man !

and another question , how to change max money ?

You can use other values for it, script.

Otherwise it's not possible.

old Re: how to change weapon values

KimKat
GAME BANNED Off Offline

Quote
phihung940 has written
@DC: thank for support man !

and another question , how to change max money ?
Check this post and you have your answer.

old Re: how to change weapon values

Vectarrio
User Off Offline

Quote
JaBoo has written
I am just wondering, is mp_wpndmg affected the Rightclick for wrench?

Wrench hasn't any attack on mouse2. Only build function

old Re: how to change weapon values

DC
Admin Off Offline

Quote
a rightclick with wrench opens the construction menu - which is not affected by any command.

for everything else: simply try it.

edit: I was too slow

old Re: how to change weapon values

JaBoo
User Off Offline

Quote
Oh I'm sorry, I am not very clear on something
I meant, when you are fixing the building.
Can wrench fix be more powerful?
Are it possible with lua?
To the start Previous 1 2 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview