AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   More harm with weapons (https://forums.alliedmods.net/showthread.php?t=99930)

Debesėlis 08-10-2009 19:42

More harm with weapons
 
Possible that a player could do more harm? Maybe someone have code?

Exolent[jNr] 08-10-2009 20:47

Re: More harm with weapons
 
It's called Damage Multiplier.
Search for plugins with this.

Debesėlis 08-11-2009 05:22

Re: More harm with weapons
 
How do I determine how much injury...? maybe "ArrayGetCellg_aDamageMultipliers" does not need?

PHP Code:

public event_multiply_damage(victiminflictorattackerFloat:damagedamage_type)
{
    if ( 
get_user_flags(id) & ACCESS )
    {
        if ( 
weapons_active[id] == )
        {
            
SetHamParamFloat(4damage ArrayGetCell(g_aDamageMultipliersPlayerLevels[attacker]))
        {
    }



Bad_Bud 08-11-2009 21:16

Re: More harm with weapons
 
"damage" is the original amount of damage. You can change it to anything you want in that last part.

PHP Code:

SetHamParamFloat(4,1337.0



All times are GMT -4. The time now is 18:27.

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