Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- One shot Weapon --
- function GetRequiredVersion() return 200 end
- function OnScriptLoad(processid, game, persistent) end
- function OnNewGame(map)
- LoadTags()
- end
- function OnDamageLookup(receiving, causing, mapId, tagdata)
- if mapId == pistolammo_tag_id then
- writefloat(tagdata, 0x1D0, 500)
- writefloat(tagdata, 0x1D4, 500)
- writefloat(tagdata, 0x1D8, 500)
- end
- end
- function LoadTags()
- -- Equipment
- camouflage_tag_id = gettagid("eqip", "powerups\\active camouflage")
- healthpack_tag_id = gettagid("eqip", "powerups\\health pack")
- overshield_tag_id = gettagid("eqip", "powerups\\over shield")
- doublespeed_tag_id = gettagid("eqip", "powerups\\double speed")
- fullspec_tag_id = gettagid("eqip", "powerups\\full-spectrum vision")
- fragnade_tag_id = gettagid("eqip", "weapons\\frag grenade\\frag grenade")
- plasmanade_tag_id = gettagid("eqip", "weapons\\plasma grenade\\plasma grenade")
- rifleammo_tag_id = gettagid("eqip", "powerups\\assault rifle ammo\\assault rifle ammo")
- needlerammo_tag_id = gettagid("eqip", "powerups\\needler ammo\\needler ammo")
- pistolammo_tag_id = gettagid("eqip", "powerups\\pistol ammo\\pistol ammo")
- rocketammo_tag_id = gettagid("eqip", "powerups\\rocket launcher ammo\\rocket launcher ammo")
- shotgunammo_tag_id = gettagid("eqip", "powerups\\shotgun ammo\\shotgun ammo")
- sniperammo_tag_id = gettagid("eqip", "powerups\\sniper rifle ammo\\sniper rifle ammo")
- flameammo_tag_id = gettagid("eqip", "powerups\\flamethrower ammo\\flamethrower ammo")
- -- Weapons
- assaultrifle_tag_id = gettagid("weap", "weapons\\assault rifle\\assault rifle")
- oddball_tag_id = gettagid("weap", "weapons\\ball\\ball")
- flag_tag_id = gettagid("weap", "weapons\\flag\\flag")
- flamethrower_tag_id = gettagid("weap", "weapons\\flamethrower\\flamethrower")
- gravityrifle_tag_id = gettagid("weap", "weapons\\gravity rifle\\gravity rifle")
- needler_tag_id = gettagid("weap", "weapons\\needler\\mp_needler")
- pistol_tag_id = gettagid("weap", "weapons\\pistol\\pistol")
- plasmapistol_tag_id = gettagid("weap", "weapons\\plasma pistol\\plasma pistol")
- plasmarifle_tag_id = gettagid("weap", "weapons\\plasma rifle\\plasma rifle")
- plasmacannon_tag_id = gettagid("weap", "weapons\\plasma_cannon\\plasma_cannon")
- rocketlauncher_tag_id = gettagid("weap", "weapons\\rocket launcher\\rocket launcher")
- shotgun_tag_id = gettagid("weap", "weapons\\shotgun\\shotgun")
- sniper_tag_id = gettagid("weap", "weapons\\sniper rifle\\sniper rifle")
- -- Globals
- global_distanceId = gettagid("jpt!", "globals\\distance")
- global_fallingId = gettagid("jpt!", "globals\\falling")
- -- Others
- assaultrifle_melee_tag_id = gettagid("jpt!", "weapons\\assault rifle\\melee")
- flag_melee_tag_id = gettagid("jpt!", "weapons\\flag\\melee")
- flamethrower_melee_tag_id = gettagid("jpt!", "weapons\\flamethrower\\melee")
- needler_melee_tag_id = gettagid("jpt!", "weapons\\ball\\melee")
- pistol_melee_tag_id = gettagid("jpt!", "weapons\\pistol\\melee")
- plasmapistol_melee_tag_id = gettagid("jpt!", "weapons\\plasma pistol\\melee")
- plasmarifle_melee_tag_id = gettagid("jpt!", "weapons\\plasma rifle\\melee")
- plasmacannon_melee_tag_id = gettagid("jpt!", "weapons\\effects\\plasma_cannon_melee")
- rocketlauncher_melee_tag_id = gettagid("jpt!", "weapons\\rocket launcher\\melee")
- shotgun_melee_tag_id = gettagid("jpt!", "weapons\\shotgun\\melee")
- sniper_melee_tag_id = gettagid("jpt!", "weapons\\sniper rifle\\melee")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement