aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/scripts/vscripts/weapons/_team_emp.gnut
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.CustomServers/scripts/vscripts/weapons/_team_emp.gnut')
-rw-r--r--Northstar.CustomServers/scripts/vscripts/weapons/_team_emp.gnut38
1 files changed, 0 insertions, 38 deletions
diff --git a/Northstar.CustomServers/scripts/vscripts/weapons/_team_emp.gnut b/Northstar.CustomServers/scripts/vscripts/weapons/_team_emp.gnut
deleted file mode 100644
index 41d428484..000000000
--- a/Northstar.CustomServers/scripts/vscripts/weapons/_team_emp.gnut
+++ /dev/null
@@ -1,38 +0,0 @@
-global function TeamEMP_Init
-global function EMPEffects
-
-void function TeamEMP_Init()
-{
- RegisterSignal( "PlayerEMPed" )
-}
-
-void function EMPEffects( entity player, float time )
-{
- player.nv.empEndTime = Time() + time
-
- player.Signal( "PlayerEMPed" )
-
- // remember this is a stack so you need to enable as many times as you disable
- DisableOffhandWeapons( player )
-
- thread RecoverFromEMP( player, time )
-}
-
-void function RecoverFromEMP( entity player, float time )
-{
- svGlobal.levelEnt.EndSignal( "BurnMeter_PreMatchEnter" )
- player.EndSignal( "OnDestroy" )
-
- OnThreadEnd(
- function() : ( player )
- {
- if ( IsValid( player ) )
- {
- // remember this is a stack so you need to enable as many times as you disable
- EnableOffhandWeapons( player )
- }
- }
- )
-
- wait time + 0.1
-} \ No newline at end of file