-
Notifications
You must be signed in to change notification settings - Fork 9
/
script_1edaf4333ed0bece.gsc
64 lines (59 loc) · 1.83 KB
/
script_1edaf4333ed0bece.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
// Decompiled by Serious. Credits to Scoba for his original tool, Cerberus, which I heavily upgraded to support remaining features, other games, and other platforms.
#using scripts\core_common\util_shared.csc;
#using scripts\core_common\clientfield_shared.csc;
#namespace namespace_6036de69;
/*
Name: init
Namespace: namespace_6036de69
Checksum: 0xB04C3281
Offset: 0x130
Size: 0x144
Parameters: 0
Flags: Linked
*/
function init()
{
clientfield::register("scriptmover", "gear_box_spark", 24000, 1, "int", &gear_box_spark_fx, 0, 0);
clientfield::register("scriptmover", "flinger_impact_wood", 24000, 1, "int", &flinger_impact_wood_fx, 0, 0);
clientfield::register("clientuimodel", "ZMInventoryPersonal.heat_pack", 1, 1, "int", undefined, 0, 0);
level._effect[#"hash_5bea6497d336bbf"] = #"hash_299249c1ff22e1c2";
level._effect[#"flinger_impact_wood"] = #"hash_7677e82b27eada6f";
forcestreamxmodel("p8_zm_ora_crate_wood_01_tall_open_lid_dmg");
}
/*
Name: gear_box_spark_fx
Namespace: namespace_6036de69
Checksum: 0x40270E23
Offset: 0x280
Size: 0xBE
Parameters: 7
Flags: Linked
*/
function gear_box_spark_fx(localclientnum, oldval, newval, bnewent, binitialsnap, fieldname, bwastimejump)
{
if(newval)
{
self.var_91180673 = util::playfxontag(localclientnum, level._effect[#"hash_5bea6497d336bbf"], self, "tag_generator");
}
else if(isdefined(self.var_91180673))
{
stopfx(localclientnum, self.var_91180673);
self.var_91180673 = undefined;
}
}
/*
Name: flinger_impact_wood_fx
Namespace: namespace_6036de69
Checksum: 0xCCFE278C
Offset: 0x348
Size: 0x82
Parameters: 7
Flags: Linked
*/
function flinger_impact_wood_fx(localclientnum, oldval, newval, bnewent, binitialsnap, fieldname, bwastimejump)
{
if(newval)
{
self.var_91180673 = util::playfxontag(localclientnum, level._effect[#"flinger_impact_wood"], self, "tag_origin");
}
}