botc_defs.bts

changeset 99
44c0c7f31ae8
parent 86
43fe4be38a58
equal deleted inserted replaced
98:ea02b78a737a 99:44c0c7f31ae8
4 // Do not edit unless you know what you are doing! 4 // Do not edit unless you know what you are doing!
5 5
6 // ============================================================================= 6 // =============================================================================
7 // 7 //
8 // Function definitions 8 // Function definitions
9 // Syntax: number:name:returntype:numargs:maxargs[:argumentlist] 9 // Syntax: funcdef <return> <num>:<name> (<args>)
10 // 10 //
11 funcdef 0:changestate:void:1:1:int(newstate); 11 funcdef void 0:changestate (int newstate);
12 funcdef 1:delay:void:1:1:int(tics); 12 funcdef void 1:delay (int tics);
13 funcdef 2:rand:int:2:2:int(a):int(b); 13 funcdef int 2:rand (int a, int b);
14 funcdef 3:StringsAreEqual:bool:2:2:str(string1):str(string2); 14 funcdef bool 3:StringsAreEqual (str string1, str string2);
15 funcdef 4:LookForPowerups:int:2:2:int(start):bool(visibilitycheck); 15 funcdef int 4:LookForPowerups (int start, bool visibilitycheck);
16 funcdef 5:LookForWeapons:int:2:2:int(start):bool(visibilitycheck); 16 funcdef int 5:LookForWeapons (int start, bool visibilitycheck);
17 funcdef 6:LookForAmmo:int:2:2:int(start):bool(visibilitycheck); 17 funcdef int 6:LookForAmmo (int start, bool visibilitycheck);
18 funcdef 7:LookForBaseHealth:int:2:2:int(start):bool(visibilitycheck); 18 funcdef int 7:LookForBaseHealth (int start, bool visibilitycheck);
19 funcdef 8:LookForBaseArmor:int:2:2:int(start):bool(visibilitycheck); 19 funcdef int 8:LookForBaseArmor (int start, bool visibilitycheck);
20 funcdef 9:LookForSuperHealth:int:2:2:int(start):bool(visibilitycheck); 20 funcdef int 9:LookForSuperHealth (int start, bool visibilitycheck);
21 funcdef 10:LookForSuperArmor:int:2:2:int(start):bool(visibilitycheck); 21 funcdef int 10:LookForSuperArmor (int start, bool visibilitycheck);
22 funcdef 11:LookForPlayerEnemies:int:1:1:int(start); 22 funcdef int 11:LookForPlayerEnemies (int start);
23 funcdef 12:GetClosestPlayerEnemy:int:0:0; 23 funcdef int 12:GetClosestPlayerEnemy();
24 funcdef 13:MoveLeft:void:1:1:int(speed); 24 funcdef void 13:MoveLeft (int speed);
25 funcdef 14:MoveRight:void:1:1:int(speed); 25 funcdef void 14:MoveRight (int speed);
26 funcdef 15:MoveForward:void:1:1:int(speed); 26 funcdef void 15:MoveForward (int speed);
27 funcdef 16:MoveBackwards:void:1:1:int(speed); 27 funcdef void 16:MoveBackwards (int speed);
28 funcdef 17:StopMovement:void:0:0; 28 funcdef void 17:StopMovement();
29 funcdef 18:StopForwardMovement:void:0:0; 29 funcdef void 18:StopForwardMovement();
30 funcdef 19:StopSidewaysMovement:void:0:0; 30 funcdef void 19:StopSidewaysMovement();
31 funcdef 20:CheckTerrain:int:2:2:int(distance):int(angle); 31 funcdef int 20:CheckTerrain (int distance, int angle);
32 funcdef 21:PathToGoal:int:1:1:int(speed); 32 funcdef int 21:PathToGoal (int speed);
33 funcdef 22:PathToLastKnownEnemyPosition:int:1:1:int(speed); 33 funcdef int 22:PathToLastKnownEnemyPosition (int speed);
34 funcdef 23:PathToLastHeardSound:int:1:1:int(speed); 34 funcdef int 23:PathToLastHeardSound (int speed);
35 funcdef 24:Roam:int:1:1:int(speed); 35 funcdef int 24:Roam (int speed);
36 funcdef 25:GetPathingCostToItem:int:1:1:int(item); 36 funcdef int 25:GetPathingCostToItem (int item);
37 funcdef 26:GetDistanceToItem:int:1:1:int(item); 37 funcdef int 26:GetDistanceToItem (int item);
38 funcdef 27:GetItemName:str:1:1:int(item); 38 funcdef str 27:GetItemName (int item);
39 funcdef 28:IsItemVisible:bool:1:1:int(item); 39 funcdef bool 28:IsItemVisible (int item);
40 funcdef 29:SetGoal:void:1:1:int(item); 40 funcdef void 29:SetGoal (int item);
41 funcdef 30:BeginAimingAtEnemy:void:0:0; 41 funcdef void 30:BeginAimingAtEnemy();
42 funcdef 31:StopAimingAtEnemy:void:0:0; 42 funcdef void 31:StopAimingAtEnemy();
43 funcdef 32:Turn:void:1:1:int(turnangle); 43 funcdef void 32:Turn (int turnangle);
44 funcdef 33:GetCurrentAngle:int:0:0; 44 funcdef int 33:GetCurrentAngle();
45 funcdef 34:SetEnemy:void:1:1:int(player); 45 funcdef void 34:SetEnemy (int player);
46 funcdef 35:ClearEnemy:void:0:0; 46 funcdef void 35:ClearEnemy();
47 funcdef 36:IsEnemyAlive:bool:0:0; 47 funcdef bool 36:IsEnemyAlive();
48 funcdef 37:IsEnemyVisible:bool:0:0; 48 funcdef bool 37:IsEnemyVisible();
49 funcdef 38:GetDistanceToEnemy:int:0:0; 49 funcdef int 38:GetDistanceToEnemy();
50 funcdef 39:GetPlayerDamagedBy:int:0:0; 50 funcdef int 39:GetPlayerDamagedBy();
51 funcdef 40:GetEnemyInvulnerabilityTicks:int:0:0; 51 funcdef int 40:GetEnemyInvulnerabilityTicks();
52 funcdef 41:FireWeapon:void:0:0; 52 funcdef void 41:FireWeapon();
53 funcdef 42:BeginFiringWeapon:void:0:0; 53 funcdef void 42:BeginFiringWeapon();
54 funcdef 43:StopFiringWeapon:void:0:0; 54 funcdef void 43:StopFiringWeapon();
55 funcdef 44:GetCurrentWeapon:str:0:0; 55 funcdef str 44:GetCurrentWeapon();
56 funcdef 45:ChangeWeapon:void:1:1:str(weapon); 56 funcdef void 45:ChangeWeapon (str weapon);
57 funcdef 46:GetWeaponFromItem:str:1:1:int(item); 57 funcdef str 46:GetWeaponFromItem (int item);
58 funcdef 47:IsWeaponOwned:bool:1:1:int(item); 58 funcdef bool 47:IsWeaponOwned (int item);
59 funcdef 48:IsFavoriteWeapon:bool:1:1:str(weapon); 59 funcdef bool 48:IsFavoriteWeapon (str weapon);
60 funcdef 49:Say:void:1:1:str(message); 60 funcdef void 49:Say (str message);
61 funcdef 50:SayFromFile:void:2:2:str(filename):str(section); 61 funcdef void 50:SayFromFile (str filename, str section);
62 funcdef 51:SayFromChatFile:void:1:1:str(section); 62 funcdef void 51:SayFromChatFile (str section);
63 funcdef 52:BeginChatting:void:0:0; 63 funcdef void 52:BeginChatting();
64 funcdef 53:StopChatting:void:0:0; 64 funcdef void 53:StopChatting();
65 funcdef 54:ChatSectionExists:bool:1:1:str(section); 65 funcdef bool 54:ChatSectionExists (str section);
66 funcdef 55:ChatSectionExistsInFile:bool:2:2:str(filename):str(section); 66 funcdef bool 55:ChatSectionExistsInFile (str filename, str section);
67 funcdef 56:GetLastChatString:str:0:0; 67 funcdef str 56:GetLastChatString();
68 funcdef 57:GetLastChatPlayer:str:0:0; 68 funcdef str 57:GetLastChatPlayer();
69 funcdef 58:GetChatFrequency:int:0:0; 69 funcdef int 58:GetChatFrequency();
70 funcdef 59:Jump:void:0:0; 70 funcdef void 59:Jump();
71 funcdef 60:BeginJumping:void:0:0; 71 funcdef void 60:BeginJumping();
72 funcdef 61:StopJumping:void:0:0; 72 funcdef void 61:StopJumping();
73 funcdef 62:Taunt:void:0:0; 73 funcdef void 62:Taunt();
74 funcdef 63:Respawn:void:0:0; 74 funcdef void 63:Respawn();
75 funcdef 64:TryToJoinGame:void:0:0; 75 funcdef void 64:TryToJoinGame();
76 funcdef 65:IsDead:bool:0:0; 76 funcdef bool 65:IsDead();
77 funcdef 66:IsSpectating:bool:0:0; 77 funcdef bool 66:IsSpectating();
78 funcdef 67:GetHealth:int:0:0; 78 funcdef int 67:GetHealth();
79 funcdef 68:GetArmor:int:0:0; 79 funcdef int 68:GetArmor();
80 funcdef 69:GetBaseHealth:int:0:0; 80 funcdef int 69:GetBaseHealth();
81 funcdef 70:GetBaseArmor:int:0:0; 81 funcdef int 70:GetBaseArmor();
82 funcdef 71:GetBotskill:int:0:0; 82 funcdef int 71:GetBotskill();
83 funcdef 72:GetAccuracy:int:0:0; 83 funcdef int 72:GetAccuracy();
84 funcdef 73:GetIntellect:int:0:0; 84 funcdef int 73:GetIntellect();
85 funcdef 74:GetAnticipation:int:0:0; 85 funcdef int 74:GetAnticipation();
86 funcdef 75:GetEvade:int:0:0; 86 funcdef int 75:GetEvade();
87 funcdef 76:GetReactionTime:int:0:0; 87 funcdef int 76:GetReactionTime();
88 funcdef 77:GetPerception:int:0:0; 88 funcdef int 77:GetPerception();
89 funcdef 78:SetSkillIncrease:void:1:1:bool(increase); 89 funcdef void 78:SetSkillIncrease (bool increase);
90 funcdef 79:IsSkillIncreased:bool:0:0; 90 funcdef bool 79:IsSkillIncreased();
91 funcdef 80:SetSkillDecrease:void:1:1:bool(decrease); 91 funcdef void 80:SetSkillDecrease (bool decrease);
92 funcdef 81:IsSkillDecreased:bool:0:0; 92 funcdef bool 81:IsSkillDecreased();
93 funcdef 82:GetGameMode:int:0:0; 93 funcdef int 82:GetGameMode();
94 funcdef 83:GetSpread:int:0:0; 94 funcdef int 83:GetSpread();
95 funcdef 84:GetLastJoinedPlayer:str:0:0; 95 funcdef str 84:GetLastJoinedPlayer();
96 funcdef 85:GetPlayerName:str:1:1:int(player); 96 funcdef str 85:GetPlayerName (int player);
97 funcdef 86:GetReceivedMedal:int:0:0; 97 funcdef int 86:GetReceivedMedal();
98 funcdef 87:ACS_Execute:void:1:5:int(script):int(map=0):int(arg0=0):int(arg1=0):int(arg2=0); 98 funcdef void 87:ACS_Execute (int script, int map = 0, int arg0 = 0, int arg1 = 0, int arg2 = 0);
99 funcdef 88:GetFavoriteWeapon:str:0:0; 99 funcdef str 88:GetFavoriteWeapon();
100 funcdef 89:SayFromLump:void:2:2:str(lump):str(section); 100 funcdef void 89:SayFromLump (str lump, str section);
101 funcdef 90:SayFromChatLump:void:1:1:str(section); 101 funcdef void 90:SayFromChatLump (str section);
102 funcdef 91:ChatSectionExistsInLump:bool:2:2:str(lump):str(section); 102 funcdef bool 91:ChatSectionExistsInLump (str lump, str section);
103 funcdef 92:ChatSectionExistsInChatLump:bool:1:1:str(section); 103 funcdef bool 92:ChatSectionExistsInChatLump (str section);
104 104
105 // ============================================================================= 105 // =============================================================================
106 // 106 //
107 // Events: 107 // Events:
108 // eventdef <number>:<name>(); 108 // eventdef <number>:<name>();

mercurial