-
Notifications
You must be signed in to change notification settings - Fork 0
/
2724.gsc
176 lines (136 loc) · 4.59 KB
/
2724.gsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
// IW7 GSC SOURCE
// Dumped by https://github.com/xensik/gsc-tool
_id_13A12()
{
var_0 = scripts\engine\utility::_id_107E6();
var_0 linkto( self );
self._id_A63A = var_0;
thread _id_A639( var_0 );
thread scripts\mp\utility\game::_id_C15A( "death", "end_explode" );
self endon( "end_explode" );
var_1 = self.owner;
self waittill( "explode", var_2 );
thread _id_0118( var_2, 256, var_1, var_0 );
}
_id_C5CB( var_0, var_1, var_2, var_3, var_4 )
{
if ( !isdefined( var_0 ) )
return;
else if ( var_2 == "MOD_IMPACT" )
return;
if ( issubstr( self._id_13C2E, "iw7_tacburst_mpl" ) )
_id_20BF( var_0, var_4 );
_id_20C3( var_0, var_4, var_1 );
}
_id_0118( var_0, var_1, var_2, var_3 )
{
var_4 = "gltacburst";
if ( issubstr( self._id_13C2E, "iw7_tacburst_mpl" ) )
var_4 = "gltacburst_big";
else if ( issubstr( self._id_13C2E, "iw7_tacburst_mpl_epic2" ) )
var_4 = "gltacburst_regen";
var_5 = scripts\mp\weapons::_id_7E8C( var_0, var_1, 0 );
foreach ( var_7 in var_5 )
{
if ( !isdefined( var_7 ) )
continue;
if ( !scripts\mp\equipment\phase_shift::_id_213D( self, var_7 ) )
continue;
var_8 = scripts\engine\utility::ter_op( isdefined( var_7.owner ), var_7.owner, var_7 );
if ( !scripts\mp\weapons::_id_7415( var_2, var_8 ) && var_8 != var_2 )
continue;
var_7 notify( "emp_damage", var_2, 3, var_0, var_4, "MOD_EXPLOSIVE" );
}
var_10 = scripts\mp\utility\game::_id_807C( var_0, var_1 );
foreach ( var_12 in var_10 )
{
if ( !isdefined( var_12 ) )
continue;
if ( !scripts\mp\utility\game::isreallyalive( var_12 ) )
continue;
if ( !scripts\mp\equipment\phase_shift::_id_213D( var_12, self ) )
continue;
if ( var_12 != var_2 && scripts\mp\utility\game::_id_9E05( var_2.team, var_12 ) )
continue;
if ( !var_12 scripts\mp\killstreaks\emp_common::_id_FFC5() )
{
var_2 scripts\mp\damagefeedback::updatedamagefeedback( "hiticonempimmune", undefined, undefined, undefined, 1 );
continue;
}
if ( scripts\mp\utility\game::istrue( var_12._id_9F72 ) )
continue;
var_12 _meth_80B0( 1, var_2.origin, var_2, var_3, "MOD_EXPLOSIVE", var_4 );
var_12 scripts\mp\killstreaks\emp_common::_id_20C7( 3 );
if ( var_4 == "gltacburst_big" )
var_12 _id_20BF( self, var_2 );
thread scripts\mp\gamescore::_id_11ACF( var_2, var_12, var_4, 3 );
}
}
_id_20C3( var_0, var_1, var_2 )
{
if ( !scripts\mp\killstreaks\emp_common::_id_FFC5() )
{
if ( var_1 != self )
var_1 scripts\mp\damagefeedback::updatedamagefeedback( "hiticonempimmune", undefined, undefined, undefined, 1 );
return;
}
var_3 = 3;
if ( self == var_1 )
var_3 = 1;
scripts\mp\killstreaks\emp_common::_id_20C7( var_3 );
thread scripts\mp\gamescore::_id_11ACF( var_1, self, scripts\engine\utility::ter_op( issubstr( var_2, "iw7_tacburst_mpl" ), "gltacburst_big", "gltacburst" ), var_3 );
}
_id_20BF( var_0, var_1 )
{
var_2 = 2;
var_3 = 4;
if ( self == var_1 )
{
var_2 = 0.75;
var_3 = 1.5;
}
var_4 = 1 - distance( self.origin, var_0.origin ) / 256;
if ( var_4 < 0 )
var_4 = 0;
var_5 = var_2 + var_3 * var_4;
var_5 = scripts\mp\perks\perkfunctions::_id_20E0( var_1, self, var_5 );
thread scripts\mp\gamescore::_id_11ACF( var_1, self, "gltacburst_big", var_5 );
var_1 notify( "stun_hit" );
self notify( "concussed", var_1 );
scripts\mp\weapons::_id_F7FC();
thread scripts\mp\weapons::_id_40EA( var_5 );
self shellshock( "concussion_grenade_mp", var_5 );
self._id_44ED = gettime() + var_5 * 1000;
}
_id_61B2( var_0 )
{
self endon( "death" );
self endon( "disconnect" );
self endon( "emp_rumble_loop" );
self notify( "emp_rumble_loop" );
var_1 = gettime() + var_0 * 1000;
while ( gettime() < var_1 )
{
self playrumbleonentity( "damage_light" );
wait 0.05;
}
}
_id_A639( var_0 )
{
var_0 endon( "death" );
self waittill( "death" );
wait 5;
var_0 delete();
}
_id_B92C( var_0, var_1, var_2, var_3, var_4 )
{
if ( !isdefined( var_3 ) || !isdefined( var_4 ) || !isdefined( var_1 ) || !isdefined( var_2 ) )
return var_0;
if ( var_4 != "gltacburst" )
return var_0;
if ( var_1 != var_2 )
return var_0;
if ( distancesquared( var_2.origin, var_3.origin ) <= 16384 )
return var_0;
return 0;
}