remove unused code

This commit is contained in:
Luna 2023-12-28 13:33:41 +01:00
parent 24c37ec5be
commit 7490e8f816

View File

@ -421,35 +421,3 @@ hook.Add("Think", "simfphys_weaponhandler", function()
end
end
end)
timer.Simple(18, function()
if simfphys.VERSION < 1.2 then
print( "[SIMFPHYS ARMED]: SIMFPHYS BASE IS OUT OF DATE!" )
if (simfphys.armedAutoRegister and not simfphys.armedAutoRegister()) or simfphys.RegisterEquipment then
print("[SIMFPHYS ARMED]: ONE OF YOUR ADDITIONAL SIMFPHYS-ARMED PACKS IS CAUSING CONFLICTS!!!")
print("[SIMFPHYS ARMED]: PRECAUTIONARY RESTORING FUNCTION:")
print("[SIMFPHYS ARMED]: simfphys.FireHitScan")
print("[SIMFPHYS ARMED]: simfphys.FirePhysProjectile")
print("[SIMFPHYS ARMED]: simfphys.RegisterCrosshair")
print("[SIMFPHYS ARMED]: simfphys.RegisterCamera")
print("[SIMFPHYS ARMED]: simfphys.armedAutoRegister")
print("[SIMFPHYS ARMED]: REMOVING FUNCTION:")
print("[SIMFPHYS ARMED]: simfphys.RegisterEquipment")
print("[SIMFPHYS ARMED]: CLEARING OUTDATED ''RegisterEquipment'' HOOK")
print("[SIMFPHYS ARMED]: !!!FUNCTIONALITY IS NOT GUARANTEED!!!")
simfphys.FireHitScan = function( data ) simfphys.FireBullet( data ) end
simfphys.FirePhysProjectile = function( data ) simfphys.FirePhysBullet( data ) end
simfphys.RegisterCrosshair = function( ent, data ) simfphys.xhairRegister( ent, data ) end
simfphys.RegisterCamera =
function( ent, offset_firstperson, offset_thirdperson, bLocalAng, attachment )
simfphys.CameraRegister( ent, offset_firstperson, offset_thirdperson, bLocalAng, attachment )
end
hook.Remove( "PlayerSpawnedVehicle","simfphys_armedvehicles" )
simfphys.RegisterEquipment = nil
simfphys.armedAutoRegister = function( vehicle ) simfphys.WeaponSystemRegister( vehicle ) return true end
end
end
end)