Black Ops 3 Source Code Explorer
0.1
An script explorer for Black Ops 3 by ZeRoY
sd.csc
Go to the documentation of this file.
1
#using scripts\codescripts\struct;
2
3
#using scripts\shared\callbacks_shared;
4
5
#using scripts\mp\gametypes\_globallogic;
6
7
#insert scripts\shared\shared.gsh;
8
9
function
main
()
10
{
11
callback::on_spawned
( &
on_player_spawned
);
12
//callback::on_start_gametype( &onStartGameType );
13
if
( GetGametypeSetting(
"silentPlant"
) != 0 )
14
setsoundcontext(
"bomb_plant"
,
"silent"
);
15
}
16
17
function
onStartGameType
()
18
{
19
}
20
21
function
on_player_spawned
( localClientNum )
22
{
23
self
thread
player_sound_context_hack
();
24
self
thread
globallogic::watch_plant_sound
( localClientNum );
25
}
26
27
function
player_sound_context_hack
()
28
{
29
if
( GetGametypeSetting(
"silentPlant"
) != 0 )
30
{
31
self
endon(
"entityshutdown"
);
32
33
self
notify(
"player_sound_context_hack"
);
34
self
endon(
"player_sound_context_hack"
);
35
36
while
(1)
37
{
38
self
setsoundentcontext(
"bomb_plant"
,
"silent"
);
39
wait(1);
40
}
41
}
42
43
}
on_player_spawned
function on_player_spawned(localClientNum)
Definition:
sd.csc:21
watch_plant_sound
function watch_plant_sound(localClientNum)
Definition:
_globallogic.csc:115
on_spawned
function on_spawned(func, obj)
Definition:
callbacks_shared.csc:245
player_sound_context_hack
function player_sound_context_hack()
Definition:
sd.csc:27
main
function main()
Definition:
sd.csc:9
onStartGameType
function onStartGameType()
Definition:
sd.csc:17
scripts
mp
gametypes
sd.csc
Generated by
1.8.17