[Requests] Scripts that can set a damage

4 posts Page 1 of 1 First unread post
harly744
Deuce
Posts: 2
Joined: Mon Apr 22, 2013 12:41 pm


I do not know anything about python. But I tried to open the server, the server has opened in the end! Blue_BigSmile However, another problem occurred. I was trying to increase the damage of weapons to make fun servers. But I do not know anything about python. So ask for help from a lot of people here are familiar with the python. If you have created a script that should be replaced if any damage has changed dont explanation.
Pleeeeeeeeeease

ps. i cant speak english
so easy english please Blue_Crying
LeCom


I will not write a script for you, but you can set weapon damage in pyspades.WEAPONS:
pyspades.WEAPONS[0] is rifle
pyspades.WEAPONS[1] is SMG
pyspades.WEAPONS[2] is shotgun

if you set damage AFTER somebody has joined, he needs to respawn to have the new damage values.
harly744
Deuce
Posts: 2
Joined: Mon Apr 22, 2013 12:41 pm


pyspades.WEAPONS[0] is rifle
pyspades.WEAPONS[1] is SMG
pyspades.WEAPONS[2] is shotgun ?

is it a command?
or Or one must be modified in the config?
LeCom


It's part of a script.
damage[0] is head, 1 is body, 2 is arms, 3 is legs
Like:
from pyspades.weapons import WEAPONS

globals()['WEAPONS'][0].damage[0]=50

This is a part of an imcomplete script. It sets rifle damage to head to 50.

Edit: It was pyspades.weapons.WEAPONS in my first answer. I forgot much stuff.
4 posts Page 1 of 1 First unread post
Return to “Ideas / Requests”

Who is online

Users browsing this forum: No registered users and 17 guests