Jump to content

Changing weapon data / Damage


Recommended Posts

I won't post the offsets here, but with some changes in the GTA data, you can change the weapon range, weapon damage, etc.

This would be an interesting feature for the future releases, because it would enable the administrator to, maybe, power down the minigun, or power up the desert eagle to a one-shot-killer.

Link to comment
Damage, maybe.
  
function DeagleKO ( attacker, attackerweapon, bodypart, loss ) 
        if ( attackerweapon== 14 ) then 
            killPlayer ( source ) 
        end 
end 
  
addEventHandler ( "onPlayerDamage", getRootElement (), DeagleKO  ) 
  

The above code kills a player if they were hit by a deagle bullet. It is a one-hit kill.

Link to comment
Damage, maybe.
  
function DeagleKO ( attacker, attackerweapon, bodypart, loss ) 
        if ( attackerweapon== 14 ) then 
            killPlayer ( source ) 
        end 
end 
  
addEventHandler ( "onPlayerDamage", getRootElement (), DeagleKO  ) 
  

The above code kills a player if they were hit by a deagle bullet. It is a one-hit kill.

I know, I know, change it a bit and it heals the player.

But, the firing rate could be changed my way, too.

With some new script commands, you can write something like:

"setWeaponFiringRate", "setWeaponDamage" and "setWeaponRange" and "setWeaponWieldType", so you can make, i.e. the MP5 a dual wield weapon, the DesertEagle a sniper and the Gatling Gun (when you change the model of the gatling) some sort of futuristic impulse cannon which is used first player.

Link to comment
  • Recently Browsing   0 members

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