Jump to content

(AYUDA)Como bajar el daño que hace un arma.


Recommended Posts

lo otro, nose que tan provechoso pueda ser, ni q contras tenga

[lua]function stopMinigunDamage ( attacker, weapon, bodypart )

if ( weapon == 38 )

cancelEvent()

setElementHealth(source, getElementHealth(source) -1 )

end

end

addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage )[lua]

Link to comment
lo otro, nose que tan provechoso pueda ser, ni q contras tenga
function stopMinigunDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 38 ) 
        cancelEvent()  
                setElementHealth(source, getElementHealth(source) -1 ) 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Si lo que quieres es quitar daño a la minigun simplemente pon:

function stopMinigunDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 38 ) 
        cancelEvent() 
                setElementHealth(source, getElementHealth(source)) --Modificacion aqui 
    end 
end --Copyright to BorderLine 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Si quieres que el daño del atacante le haga efecto "pretoriano" usa esta, Obviamente otra vez copyright y gracias a borderLine por la base del script

function stopMinigunDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 38 ) 
        cancelEvent() 
                setElementHealth(source, getElementHealth(source)) 
                setElementHealth(attacker, getElementHealth(attacker) - 1) 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) 

Link to comment

Prueba con la teoria de Alex-Steel

--[[ 
NO ESTA TESTEADO 
]] 
function propSS () 
 setWeaponProperty("minigun","std","damage",0) 
 setWeaponProperty("minigun","poor","damage",0) 
 setWeaponProperty("minigun","pro","damage",0) 
end 
addEventHandler("onResourceStart",root,propSS) 
addEventHandler("onPlayerJoin",root,propSS) 

Link to comment
Prueba con la teoria de Alex-Steel
--[[ 
NO ESTA TESTEADO 
]] 
function propSS () 
 setWeaponProperty("minigun","std","damage",0) 
 setWeaponProperty("minigun","poor","damage",0) 
 setWeaponProperty("minigun","pro","damage",0) 
end 
addEventHandler("onResourceStart",root,propSS) 
addEventHandler("onPlayerJoin",root,propSS) 

Para que el "onPlayerJoin"?

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...