rendered paste bodyMyIndex = 0;Owner = 0;CurrentTime = 0; function onInit() end function onPrimaryAttack() _TraceLine(_PlayerGetShootPos(Owner), _PlayerGetShootAng(Owner), 4096, Owner) local target = _TraceGetEnt() local TargetPos = _TraceEndPos _PlayerLockInPlace(target, true) local explosion = _EntCreate("env_explosion") local ExplosionPower = 100 _EntSetPos(explosion, TargetPos) _EntSetKeyValue(explosion, "iMagnitude", ExplosionPower) _EntSpawn(explosion) _EntFire(explosion, "Explode", "", 1) AddTimer(2, 1, _EntRemove, explosion) AddTimer(2, 1, _PlayerLockInPlace, target, false) end function onSecondaryAttack()end function getPrintName() return "Exploder Gun"; endfunction getClassName() return "weapon_exploder"; endfunction getPrimaryAmmoType() return "melee"; endfunction getSecondaryAmmoType() return "melee"; endfunction getViewModel() return "models/weapons/v_pist_deagle.mdl"; endfunction getWorldModel() return "models/weapons/w_pist_deagle.mdl"; endfunction getAnimPrefix() return "pistol"; endfunction getWeaponSwapHands() return true; endfunction getWeaponFOV() return 85; endfunction getWeaponSlot() return 5; endfunction getWeaponSlotPos() return 2; endfunction getFiresUnderwater() return true; endfunction getReloadsSingly() return false; endfunction getDamage() return 0; endfunction getPrimaryShotDelay() return 0.1; endfunction getSecondaryShotDelay() return 0.1; endfunction getPrimaryIsAutomatic() return true; endfunction getSecondaryIsAutomatic() return true; endfunction getMaxClipPrimary() return 2; endfunction getMaxClipSecondary() return 0; endfunction getDefClipPrimary() return 2; endfunction getDefClipSecondary() return 0; endfunction getPrimaryScriptOverride() return 1; endfunction getSecondaryScriptOverride() return 1; endfunction getBulletSpread() return vector3(0.01, 0.01, 0.01); endfunction getViewKick() return vector3(0.5, 0.5, 0.5); endfunction getViewKickRandom() return vector3(2.0, 1.0, 1.0); end