-
Notifications
You must be signed in to change notification settings - Fork 0
/
2680.gsc
123 lines (98 loc) · 2.96 KB
/
2680.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
// IW7 GSC SOURCE
// Dumped by https://github.com/xensik/gsc-tool
_id_744A( var_0, var_1 )
{
level._id_37A6 = spawn( "script_model", var_0 );
level._id_37A6 setmodel( "tag_origin" );
level._id_37A6.angles = var_1;
}
_id_37B1( var_0, var_1, var_2 )
{
level._id_D460 predictstreampos( var_0.origin );
var_3 = distance( level._id_37A6.origin, var_0.origin );
var_4 = var_3 / var_1;
if ( var_4 < 0.05 )
var_4 = 0.05;
var_5 = 0;
if ( var_2 )
var_5 = var_4 * 0.1;
level._id_37A6._id_BC77 = var_0;
level._id_37A6 moveto( var_0.origin, var_4, var_5, var_5 );
level._id_37A6 rotateto( var_0.angles, var_4, var_5, var_5 );
wait( var_4 );
}
_id_7449( var_0, var_1, var_2, var_3, var_4 )
{
level endon( "game_ended" );
self endon( "disconnect" );
if ( isdefined( level._id_37A6._id_BC77 ) )
{
level._id_37A6.origin = level._id_37A6._id_BC77.origin;
level._id_37A6.angles = level._id_37A6._id_BC77.angles;
}
level notify( "camera_move" );
level endon( "camera_move" );
if ( !isdefined( var_1 ) )
var_1 = 900;
var_5 = var_0;
if ( var_2 )
{
level._id_37A6.origin = var_5.origin;
level._id_37A6.angles = var_5.angles;
}
else
_id_37B1( var_5, var_1, var_3 );
while ( isdefined( var_5._id_0334 ) )
{
if ( !isdefined( var_5._id_0334 ) )
return;
var_5 = getent( var_5._id_0334, "targetname" );
_id_37B1( var_5, var_1, var_3 );
}
level._id_37A6._id_BC77 = undefined;
if ( isdefined( var_4 ) )
self thread [[ var_4 ]]();
}
_id_744B( var_0, var_1, var_2, var_3, var_4, var_5 )
{
level endon( "game_ended" );
self endon( "disconnect" );
level notify( "camera_teleport" );
level endon( "camera_teleport" );
level._id_D460 predictstreampos( var_0.origin );
level.transition_interrupted = 1;
frontendscenecamerafade( 0, var_3 );
wait( var_3 + 0.05 );
frontendscenecamerafov( var_1, 0 );
level._id_37A6 dontinterpolate();
level._id_37A6.origin = var_0.origin;
level._id_37A6.angles = var_0.angles;
level._id_37A6._id_BC77 = undefined;
if ( isdefined( var_2 ) )
frontendscenecameracinematic( var_2 );
wait 0.1;
if ( isdefined( var_5 ) )
[[ var_5 ]]();
frontendscenecamerafade( 1, var_4 );
level.transition_interrupted = 0;
}
_id_744C( var_0 )
{
level endon( "game_ended" );
self endon( "disconnect" );
self cameralinkto( level._id_37A6, "tag_origin" );
level._id_1642 = frontendscenegetactivesection();
[[ var_0 ]]( level._id_1642 );
scripts\engine\utility::waitframe();
for (;;)
{
var_1 = frontendscenegetactivesection();
if ( var_1.name == level._id_1642.name && var_1.index == level._id_1642.index )
{
scripts\engine\utility::waitframe();
continue;
}
level._id_1642 = var_1;
[[ var_0 ]]( var_1 );
}
}