‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
fr.csc
Go to the documentation of this file.
1 #using scripts\codescripts\struct;
2 
3 #using scripts\shared\clientfield_shared;
4 #using scripts\shared\callbacks_shared;
5 #using scripts\shared\system_shared;
6 
7 #insert scripts\shared\shared.gsh;
8 #insert scripts\shared\version.gsh;
9 #insert scripts\mp\gametypes\fr.gsh;
10 
11 function ‪main()
12 {
14 
23  ‪clientfield::register( "world", "freerun_bulletPenalty", ‪VERSION_SHIP, FR_BULLETPENALTY_BITS, "int", &‪freerunbulletPenaltyUpdated, !‪CF_HOST_ONLY, !‪CF_CALLBACK_ZERO_ON_NEW_ENT );
26 }
27 
28 function ‪on_player_connect( localClientNum )
29 {
30  AllowActionSlotInput( localClientNum );
31  AllowScoreboard( localClientNum, false );
32 }
33 
34 function ‪freerunStateChanged( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
35 {
36  controllerModel = GetUIModelForController( localClientNum );
37  stateModel = CreateUIModel( controllerModel, "FreeRun.runState" );
38  SetUIModelValue( stateModel, newVal );
39 }
40 
41 function ‪freerunRetriesUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
42 {
43  controllerModel = GetUIModelForController( localClientNum );
44  retriesModel = CreateUIModel( controllerModel, "FreeRun.freeRunInfo.retries" );
45  SetUIModelValue( retriesModel, newVal );
46 }
47 
48 function ‪freerunFaultsUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
49 {
50  controllerModel = GetUIModelForController( localClientNum );
51  faultsModel = CreateUIModel( controllerModel, "FreeRun.freeRunInfo.faults" );
52  SetUIModelValue( faultsModel, newVal );
53 }
54 
55 function ‪freerunStartTimeUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
56 {
57  controllerModel = GetUIModelForController( localClientNum );
58  model = CreateUIModel( controllerModel, "FreeRun.startTime" );
59  SetUIModelValue( model, newVal );
60 }
61 
62 function ‪freerunFinishTimeUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
63 {
64  controllerModel = GetUIModelForController( localClientNum );
65  model = CreateUIModel( controllerModel, "FreeRun.finishTime" );
66  SetUIModelValue( model, newVal );
67 }
68 
69 function ‪freerunBestTimeUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
70 {
71  controllerModel = GetUIModelForController( localClientNum );
72  model = CreateUIModel( controllerModel, "FreeRun.freeRunInfo.bestTime" );
73  SetUIModelValue( model, newVal );
74 }
75 
76 function ‪freerunTimeAdjustmentUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
77 {
78  controllerModel = GetUIModelForController( localClientNum );
79  model = CreateUIModel( controllerModel, "FreeRun.timer.timeAdjustment" );
80  SetUIModelValue( model, newVal );
81 }
82 
83 function ‪freerunTimeAdjustmentSignUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
84 {
85  controllerModel = GetUIModelForController( localClientNum );
86  model = CreateUIModel( controllerModel, "FreeRun.timer.timeAdjustmentNegative" );
87  SetUIModelValue( model, newVal );
88 }
89 
90 function ‪freerunbulletPenaltyUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
91 {
92  controllerModel = GetUIModelForController( localClientNum );
93  bulletPenaltyModel = CreateUIModel( controllerModel, "FreeRun.freeRunInfo.bulletPenalty" );
94  SetUIModelValue( bulletPenaltyModel, newVal );
95 }
96 
97 function ‪freerunPausedTimeUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
98 {
99  controllerModel = GetUIModelForController( localClientNum );
100  model = CreateUIModel( controllerModel, "FreeRun.pausedTime" );
101  SetUIModelValue( model, newVal );
102 }
103 
104 function ‪freerunCheckPointUpdated( localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump )
105 {
106  controllerModel = GetUIModelForController( localClientNum );
107  model = CreateUIModel( controllerModel, "FreeRun.freeRunInfo.activeCheckpoint" );
108  SetUIModelValue( model, newVal );
109 }
110 
112 {
113 }
114 
116 {
117 }
‪FR_RETRIES_BITS
‪#define FR_RETRIES_BITS
Definition: fr.gsh:8
‪freerunFinishTimeUpdated
‪function freerunFinishTimeUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:62
‪freerunbulletPenaltyUpdated
‪function freerunbulletPenaltyUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:90
‪freerunBestTimeUpdated
‪function freerunBestTimeUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:69
‪on_player_connect
‪function on_player_connect(localClientNum)
Definition: fr.csc:28
‪CF_CALLBACK_ZERO_ON_NEW_ENT
‪#define CF_CALLBACK_ZERO_ON_NEW_ENT
Definition: version.gsh:103
‪VERSION_SHIP
‪#define VERSION_SHIP
Definition: version.gsh:36
‪main
‪function main()
Definition: fr.csc:11
‪onPrecacheGameType
‪function onPrecacheGameType()
Definition: fr.csc:111
‪freerunRetriesUpdated
‪function freerunRetriesUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:41
‪freerunTimeAdjustmentUpdated
‪function freerunTimeAdjustmentUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:76
‪FR_TIME_BITS
‪#define FR_TIME_BITS
Definition: fr.gsh:10
‪on_localclient_connect
‪function on_localclient_connect(localClientNum)
Definition: ctf.csc:20
‪freerunStateChanged
‪function freerunStateChanged(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:34
‪freerunCheckPointUpdated
‪function freerunCheckPointUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:104
‪CF_HOST_ONLY
‪#define CF_HOST_ONLY
Definition: version.gsh:102
‪freerunTimeAdjustmentSignUpdated
‪function freerunTimeAdjustmentSignUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:83
‪FR_FAULTS_BITS
‪#define FR_FAULTS_BITS
Definition: fr.gsh:9
‪freerunPausedTimeUpdated
‪function freerunPausedTimeUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:97
‪freerunFaultsUpdated
‪function freerunFaultsUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:48
‪onStartGameType
‪function onStartGameType()
Definition: fr.csc:115
‪register
‪function register()
Definition: _ai_tank.gsc:126
‪freerunStartTimeUpdated
‪function freerunStartTimeUpdated(localClientNum, oldVal, newVal, bNewEnt, bInitialSnap, fieldName, bWasTimeJump)
Definition: fr.csc:55