AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Guns damage (https://forums.alliedmods.net/showthread.php?t=93983)

~Ice*shOt 06-05-2009 05:24

Guns damage
 
what i can do a more damage for guns ? example: scout 700

xPaw 06-05-2009 05:26

Re: Guns damage
 
Search.

~Ice*shOt 06-05-2009 07:05

Re: Guns damage
 
not search. :(, I'm isung this:

PHP Code:

public HamDamage(idinflictorattackerFloat:damagedamagebits


xPaw 06-05-2009 07:17

Re: Guns damage
 
Quote:

Originally Posted by xPaw (Post 842024)
Search.


minimiller 06-05-2009 07:21

Re: Guns damage
 
Something like this?

PHP Code:

RegisterHam(Ham_TakeDamage"player""player_takedamage");
...
public 
player_takedamage(id)
{
    
swtich(get_user_weapon(read_data(1))
    {
       case 
CSW_SCOUT:
       {
            
set_user_health(idget_user_health(id) - 700)
            return 
HAM_HANDLED;
       }



xPaw 06-05-2009 07:23

Re: Guns damage
 
That was epic :mrgreen:

xbatista 06-05-2009 07:33

Re: Guns damage
 
swtich :mrgreen:

minimiller 06-05-2009 07:43

Re: Guns damage
 
meh
u understand what it was supposed to be

Atspulgs 06-05-2009 09:47

Re: Guns damage
 
hehe :D that would be a funny "No Scout on server" plugin :D

hleV 06-05-2009 09:54

Re: Guns damage
 
You could register post takedamage and set the damage with pev_dmg_take, if it does anything in post. If not - do it in pre and handle the normal damage.


All times are GMT -4. The time now is 13:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.