-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcustomRoles.ser
More file actions
40 lines (27 loc) · 1.05 KB
/
Copy pathcustomRoles.ser
File metadata and controls
40 lines (27 loc) · 1.05 KB
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
# Disabled by default: remove # from the filename to enable this script.
# system for registering custom roles
!-- OnEvent WaitingForPlayers
*spawnSystem = CRole.CreateChanceSpawnSystem ClassD 20%
CRole.Register janitor "LCZ Janitor" ClassD *spawnSystem
*spawnSystem = CRole.CreateProceduralSpawnSystem FacilityGuard 70% 1 3
CRole.Register senior_guard "Senior Guard" FacilityGuard *spawnSystem
# system when any custom role spawns
!-- OnCRole spawned
wait 3s
AnimatedBroadcast @evPlayer 10s "Your custom role is:<br><br><br><wait=1s><charwait=100ms><size=60>{*evCRole -> displayName}</size>"
# this spawn system works for janitor only
!-- OnCRole spawned
-- forRoles janitor
TPRoom @evPlayer LczToilets
GiveItem @evPlayer KeycardJanitor
# this spawn system works for senior guard only
!-- OnCRole spawned
-- forRoles senior_guard
ClearInventory @evPlayer
GiveItem @evPlayer GunFSP9
GiveItem @evPlayer KeycardMTFPrivate
GiveItem @evPlayer Medkit
GiveItem @evPlayer GrenadeHE
GiveItem @evPlayer Radio
GiveItem @evPlayer ArmorCombat
GiveItem @evPlayer Ammo9x19 3