English Weapon Damage LUA

11 replies
Goto Page
To the start Previous 1 Next To the start
15.11.12 01:51:45 am
Up
SniperME
User
Offline Off
Hi everyone. I just wanted to ask is it possible ( I think yes)
To make a Lua with changed weapon stats ( Damage ) .

I knew for the command mp_wpndmg "weapon" "damage"
But its hard to type it every time for all weapons and every time I make a server. So is this possible to be putted in server.lua ? Help would be appreciated
15.11.12 01:59:48 am
Up
Starkkz
Moderator
Offline Off
No need to, you can put it on server.cfg.
lol
15.11.12 02:05:58 am
Up
SniperME
User
Offline Off
Ouh... Didn't knew tnx for the info helped me a lot.

But just one question : When i type
> mp_wpndmg ak47 25
it shows
> Cannot find weapon ak47
Why? Am I doing it wrong ?
15.11.12 02:35:09 am
Up
Starkkz
Moderator
Offline Off
Try using "ak-47"
lol
15.11.12 10:27:07 pm
Up
Nhugg3t
User
Offline Off
Last time I checked, it was "ak47". You could try what Starkkz commented, or try "ak".
Leave the Memories in the Past - Kamikaze87, 2012
15.11.12 10:57:22 pm
Up
Trotskygrad
User
Offline Off
if you use lua you can make damage vary by distance

I recommend you try it
16.11.12 12:17:06 am
Up
SniperME
User
Offline Off
@user Starkkz: yep its ak-47 ( but all other weapons are mp5 mac10 and so on ...)
@user Nhugg3t: Its ak-47
@user Trotskygrad: Wouldn't be bad just a pity i dont knew anything really anything in Lua.
16.11.12 06:23:59 am
Up
Suprise
BANNED
Offline Off
Well..Equip an Ak-47 and see its name. It's AK-47 and not Ak47.
16.11.12 06:28:09 am
Up
Trotskygrad
User
Offline Off
I can post my old weapondamage script if you all want.
16.11.12 09:51:08 am
Up
orkin2913
User
Offline Off
If you want use lua scripts in server.lua you can write
Code:
1
parse(mp_wpndmg ak-47 999)
16.11.12 05:51:04 pm
Up
Shawni
User
Offline Off
@user orkin2913:
I dont think that he want to make the "Ak-47" damage 999.
You can put in in sys/server.cfg(without "parse" and "()" or in console
We die once, do i have to hide to be visible ?
16.11.12 07:12:09 pm
Up
orkin2913
User
Offline Off
But if he create lua script and he want upload this to us he must put this line to lua file. He can not upload he's config to pack with lua script because it will break the setting of other people using the script and that 999 was just an example.
To the start Previous 1 Next To the start