-
Notifications
You must be signed in to change notification settings - Fork 0
/
2723.gsc
114 lines (95 loc) · 2.61 KB
/
2723.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
// IW7 GSC SOURCE
// Dumped by https://github.com/xensik/gsc-tool
init()
{
thread _id_13962();
level._id_5CC0 = [];
level._id_5CC0["ability_pet_1"] = spawnstruct();
level._id_5CC0["ability_pet_1"]._id_1088C = ::_id_10610;
level._id_5CC0["ability_pet_2"] = spawnstruct();
level._id_5CC0["ability_pet_2"]._id_1088C = ::_id_10611;
level._id_5CC0["ability_pet_3"] = spawnstruct();
level._id_5CC0["ability_pet_3"]._id_1088C = ::_id_10612;
level._id_5CC0["ability_pet_4"] = spawnstruct();
level._id_5CC0["ability_pet_4"]._id_1088C = ::_id_10613;
}
_id_13962()
{
for (;;)
{
level waittill( "connected", var_0 );
var_0 thread _id_D2FA();
}
}
_id_D2FA()
{
self endon( "disconnect" );
for (;;)
{
if ( getdvarint( "scr_drone_pet_debug_spawn" ) != 0 )
{
self waittill( "spawned_player" );
var_0 = getdvarint( "scr_drone_pet_debug_spawn" );
var_1 = "select_ability";
}
else
{
self waittill( "luinotifyserver", var_1, var_0 );
if ( var_1 != "select_ability" )
continue;
}
if ( !scripts\mp\killstreaks\ball_drone::_id_128DB( 0, "ball_drone_ability_pet" ) )
continue;
self._id_27D3._id_151C = var_0;
var_2 = "ability_pet_" + ( var_0 + 1 );
var_3 = level._id_5CC0[var_2];
self [[ var_3._id_1088C ]]();
}
}
_id_10610()
{
level._id_112C0 = 1;
level._id_47EF = 30.0;
scripts\mp\utility\game::_id_B2AC( "" );
}
_id_10611()
{
self.health = 200;
self._id_BCF6 = 0.6;
scripts\mp\weapons::_id_12ED5();
}
_id_10612()
{
var_0 = self getcurrentprimaryweapon();
if ( var_0 == "none" )
var_0 = scripts\engine\utility::_id_7F62();
if ( !self hasweapon( var_0 ) )
var_0 = _id_0DC9::_id_7EB7();
scripts\mp\utility\game::_id_141E( var_0 );
scripts\mp\utility\game::_id_12C6( "iw7_knife_mp", 0 );
scripts\mp\utility\game::_id_141A( "iw7_knife_mp" );
thread _id_94A9();
}
_id_10613()
{
var_0 = self getcurrentprimaryweapon();
if ( var_0 == "none" )
var_0 = scripts\engine\utility::_id_7F62();
if ( !self hasweapon( var_0 ) )
var_0 = _id_0DC9::_id_7EB7();
scripts\mp\utility\game::_id_141E( var_0 );
scripts\mp\utility\game::_id_12C6( "iw7_knife_mp", 0 );
scripts\mp\utility\game::_id_141A( "iw7_knife_mp" );
self._id_BCF6 = 1.5;
}
_id_94A9()
{
self endon( "disconnect" );
self endon( "death" );
for (;;)
{
var_0 = self _meth_8115();
self givemaxammo( var_0 );
wait 2.0;
}
}