|
1 #!botc 1.0 |
|
2 |
|
3 // This file defines the functions and events for botc |
|
4 // Do not edit unless you know what you are doing! |
|
5 |
|
6 // ============================================================================= |
|
7 // Function definitions |
|
8 // Syntax: number:name:returntype:numargs:maxargs[:argumentlist] |
|
9 // |
|
10 funcdef 0:changestate:void:1:1:int(newstate); |
|
11 funcdef 1:delay:void:1:1:int(tics); |
|
12 funcdef 2:rand:int:2:2:int(a):int(b); |
|
13 funcdef 3:StringsAreEqual:bool:2:2:str(string1):str(string2); |
|
14 funcdef 4:LookForPowerups:int:2:2:int(start):bool(visibilitycheck); |
|
15 funcdef 5:LookForWeapons:int:2:2:int(start):bool(visibilitycheck); |
|
16 funcdef 6:LookForAmmo:int:2:2:int(start):bool(visibilitycheck); |
|
17 funcdef 7:LookForBaseHealth:int:2:2:int(start):bool(visibilitycheck); |
|
18 funcdef 8:LookForBaseArmor:int:2:2:int(start):bool(visibilitycheck); |
|
19 funcdef 9:LookForSuperHealth:int:2:2:int(start):bool(visibilitycheck); |
|
20 funcdef 10:LookForSuperArmor:int:2:2:int(start):bool(visibilitycheck); |
|
21 funcdef 11:LookForPlayerEnemies:int:1:1:int(start); |
|
22 funcdef 12:GetClosestPlayerEnemy:int:0:0; |
|
23 funcdef 13:MoveLeft:void:1:1:int(speed); |
|
24 funcdef 14:MoveRight:void:1:1:int(speed); |
|
25 funcdef 15:MoveForward:void:1:1:int(speed); |
|
26 funcdef 16:MoveBackwards:void:1:1:int(speed); |
|
27 funcdef 17:StopMovement:void:0:0; |
|
28 funcdef 18:StopForwardMovement:void:0:0; |
|
29 funcdef 19:StopSidewaysMovement:void:0:0; |
|
30 funcdef 20:CheckTerrain:int:2:2:int(distance):int(angle); |
|
31 funcdef 21:PathToGoal:int:1:1:int(speed); |
|
32 funcdef 22:PathToLastKnownEnemyPosition:int:1:1:int(speed); |
|
33 funcdef 23:PathToLastHeardSound:int:1:1:int(speed); |
|
34 funcdef 24:Roam:int:1:1:int(speed); |
|
35 funcdef 25:GetPathingCostToItem:int:1:1:int(item); |
|
36 funcdef 26:GetDistanceToItem:int:1:1:int(item); |
|
37 funcdef 27:GetItemName:str:1:1:int(item); |
|
38 funcdef 28:IsItemVisible:bool:1:1:int(item); |
|
39 funcdef 29:SetGoal:void:1:1:int(item); |
|
40 funcdef 30:BeginAimingAtEnemy:void:0:0; |
|
41 funcdef 31:StopAimingAtEnemy:void:0:0; |
|
42 funcdef 32:Turn:void:1:1:int(turnangle); |
|
43 funcdef 33:GetCurrentAngle:int:0:0; |
|
44 funcdef 34:SetEnemy:void:1:1:int(player); |
|
45 funcdef 35:ClearEnemy:void:0:0; |
|
46 funcdef 36:IsEnemyAlive:bool:0:0; |
|
47 funcdef 37:IsEnemyVisible:bool:0:0; |
|
48 funcdef 38:GetDistanceToEnemy:int:0:0; |
|
49 funcdef 39:GetPlayerDamagedBy:int:0:0; |
|
50 funcdef 40:GetEnemyInvulnerabilityTicks:int:0:0; |
|
51 funcdef 41:FireWeapon:void:0:0; |
|
52 funcdef 42:BeginFiringWeapon:void:0:0; |
|
53 funcdef 43:StopFiringWeapon:void:0:0; |
|
54 funcdef 44:GetCurrentWeapon:str:0:0; |
|
55 funcdef 45:ChangeWeapon:void:1:1:str(weapon); |
|
56 funcdef 46:GetWeaponFromItem:str:1:1:int(item); |
|
57 funcdef 47:IsWeaponOwned:bool:1:1:int(item); |
|
58 funcdef 48:IsFavoriteWeapon:bool:1:1:str(weapon); |
|
59 funcdef 49:Say:void:1:1:str(message); |
|
60 funcdef 50:SayFromFile:void:2:2:str(filename):str(section); |
|
61 funcdef 51:SayFromChatFile:void:1:1:str(section); |
|
62 funcdef 52:BeginChatting:void:0:0; |
|
63 funcdef 53:StopChatting:void:0:0; |
|
64 funcdef 54:ChatSectionExists:bool:1:1:str(section); |
|
65 funcdef 55:ChatSectionExistsInFile:bool:2:2:str(filename):str(section); |
|
66 funcdef 56:GetLastChatString:str:0:0; |
|
67 funcdef 57:GetLastChatPlayer:str:0:0; |
|
68 funcdef 58:GetChatFrequency:int:0:0; |
|
69 funcdef 59:Jump:void:0:0; |
|
70 funcdef 60:BeginJumping:void:0:0; |
|
71 funcdef 61:StopJumping:void:0:0; |
|
72 funcdef 62:Taunt:void:0:0; |
|
73 funcdef 63:Respawn:void:0:0; |
|
74 funcdef 64:TryToJoinGame:void:0:0; |
|
75 funcdef 65:IsDead:bool:0:0; |
|
76 funcdef 66:IsSpectating:bool:0:0; |
|
77 funcdef 67:GetHealth:int:0:0; |
|
78 funcdef 68:GetArmor:int:0:0; |
|
79 funcdef 69:GetBaseHealth:int:0:0; |
|
80 funcdef 70:GetBaseArmor:int:0:0; |
|
81 funcdef 71:GetBotskill:int:0:0; |
|
82 funcdef 72:GetAccuracy:int:0:0; |
|
83 funcdef 73:GetIntellect:int:0:0; |
|
84 funcdef 74:GetAnticipation:int:0:0; |
|
85 funcdef 75:GetEvade:int:0:0; |
|
86 funcdef 76:GetReactionTime:int:0:0; |
|
87 funcdef 77:GetPerception:int:0:0; |
|
88 funcdef 78:SetSkillIncrease:void:1:1:bool(increase); |
|
89 funcdef 79:IsSkillIncreased:bool:0:0; |
|
90 funcdef 80:SetSkillDecrease:void:1:1:bool(decrease); |
|
91 funcdef 81:IsSkillDecreased:bool:0:0; |
|
92 funcdef 82:GetGameMode:int:0:0; |
|
93 funcdef 83:GetSpread:int:0:0; |
|
94 funcdef 84:GetLastJoinedPlayer:str:0:0; |
|
95 funcdef 85:GetPlayerName:str:1:1:int(player); |
|
96 funcdef 86:GetReceivedMedal:int:0:0; |
|
97 funcdef 87:ACS_Execute:void:1:5:int(script):int(map=0):int(arg0=0):int(arg1=0):int(arg2=0); |
|
98 funcdef 88:GetFavoriteWeapon:str:0:0; |
|
99 funcdef 89:SayFromLump:void:2:2:str(lump):str(section); |
|
100 funcdef 90:SayFromChatLump:void:1:1:str(section); |
|
101 funcdef 91:ChatSectionExistsInLump:bool:2:2:str(lump):str(section); |
|
102 funcdef 92:ChatSectionExistsInChatLump:bool:1:1:str(section); |
|
103 |
|
104 // ============================================================================= |
|
105 // Events: |
|
106 // eventdef <number>:<name>(); |
|
107 // |
|
108 eventdef 0:KilledByEnemy(); |
|
109 eventdef 1:KilledByPlayer(); |
|
110 eventdef 2:KilledBySelf(); |
|
111 eventdef 3:KilledByEnvironment(); |
|
112 eventdef 4:ReachedGoal(); |
|
113 eventdef 5:GoalRemoved(); |
|
114 eventdef 6:DamagedByPlayer(); |
|
115 eventdef 7:PlayerSay(); |
|
116 eventdef 8:EnemyKilled(); |
|
117 eventdef 9:Respawned(); |
|
118 eventdef 10:Intermission(); |
|
119 eventdef 11:NewMap(); |
|
120 eventdef 12:EnemyUsedFist(); |
|
121 eventdef 13:EnemyUsedChainsaw(); |
|
122 eventdef 14:EnemyFiredPistol(); |
|
123 eventdef 15:EnemyFiredShotgun(); |
|
124 eventdef 16:EnemyFiredSSG(); |
|
125 eventdef 17:EnemyFiredChaingun(); |
|
126 eventdef 18:EnemyFiredMinigun(); |
|
127 eventdef 19:EnemyFiredRocket(); |
|
128 eventdef 20:EnemyFiredGrenade(); |
|
129 eventdef 21:EnemyFiredRailgun(); |
|
130 eventdef 22:EnemyFiredPlasma(); |
|
131 eventdef 23:EnemyFiredBFG(); |
|
132 eventdef 24:EnemyFiredBFG10k(); |
|
133 eventdef 25:PlayerUsedFist(); |
|
134 eventdef 26:PlayerUsedChainsaw(); |
|
135 eventdef 27:PlayerFiredPistol(); |
|
136 eventdef 28:PlayerFiredShotgun(); |
|
137 eventdef 29:PlayerFiredSSG(); |
|
138 eventdef 30:PlayerFiredChaingun(); |
|
139 eventdef 31:PlayerFiredMinigun(); |
|
140 eventdef 32:PlayerFiredRocket(); |
|
141 eventdef 33:PlayerFiredGrenade(); |
|
142 eventdef 34:PlayerFiredRailgun(); |
|
143 eventdef 35:PlayerFiredPlasma(); |
|
144 eventdef 36:PlayerFiredBFG(); |
|
145 eventdef 37:PlayerFiredBFG10k(); |
|
146 eventdef 38:UsedFist(); |
|
147 eventdef 39:UsedChainsaw(); |
|
148 eventdef 40:FiredPistol(); |
|
149 eventdef 41:FiredShotgun(); |
|
150 eventdef 42:FiredSSG(); |
|
151 eventdef 43:FiredChaingun(); |
|
152 eventdef 44:FiredMinigun(); |
|
153 eventdef 45:FiredRocket(); |
|
154 eventdef 46:FiredGrenade(); |
|
155 eventdef 47:FiredRailgun(); |
|
156 eventdef 48:FiredPlasma(); |
|
157 eventdef 49:FiredBFG(); |
|
158 eventdef 50:FiredBFG10k(); |
|
159 eventdef 51:PlayerJoinedGame(); |
|
160 eventdef 52:JoinedGame(); |
|
161 eventdef 53:DuelStartingCountdown(); |
|
162 eventdef 54:DuelFight(); |
|
163 eventdef 55:DuelWinSequence(); |
|
164 eventdef 56:Spectating(); |
|
165 eventdef 57:LMSStartingCountdown(); |
|
166 eventdef 58:LMSFight(); |
|
167 eventdef 59:LMSWinSequence(); |
|
168 eventdef 60:WeaponChange(); |
|
169 eventdef 61:EnemyBFGExplode(); |
|
170 eventdef 62:PlayerBFGExplode(); |
|
171 eventdef 63:BFGExplode(); |
|
172 eventdef 64:ReceivedMedal(); |