Sat, 18 Jan 2014 02:11:45 +0200
- further lexer corrections
35
3d3f6ed40171
Negative literal integers work properly now..
Teemu Piippo <crimsondusk64@gmail.com>
parents:
34
diff
changeset
|
1 | /* This file defines the commands botc will treat as valid. |
3d3f6ed40171
Negative literal integers work properly now..
Teemu Piippo <crimsondusk64@gmail.com>
parents:
34
diff
changeset
|
2 | * Do not edit unless you know what you are doing! |
3d3f6ed40171
Negative literal integers work properly now..
Teemu Piippo <crimsondusk64@gmail.com>
parents:
34
diff
changeset
|
3 | * |
3d3f6ed40171
Negative literal integers work properly now..
Teemu Piippo <crimsondusk64@gmail.com>
parents:
34
diff
changeset
|
4 | * Syntax: number:name:returntype:numargs:maxargs[:argumentlist] |
3d3f6ed40171
Negative literal integers work properly now..
Teemu Piippo <crimsondusk64@gmail.com>
parents:
34
diff
changeset
|
5 | */ |
69
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
6 | 0:changestate:void:1:1:int(newstate) |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
7 | 1:delay:void:1:1:int(tics) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
8 | 2:rand:int:2:2:int(a):int(b) |
21
ae602e667879
Added -l command line parameter, if given, botc will list all available commands and exit.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
20
diff
changeset
|
9 | 3:StringsAreEqual:bool:2:2:str(string1):str(string2) |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
10 | 4:LookForPowerups:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
11 | 5:LookForWeapons:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
12 | 6:LookForAmmo:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
13 | 7:LookForBaseHealth:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
14 | 8:LookForBaseArmor:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
15 | 9:LookForSuperHealth:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
16 | 10:LookForSuperArmor:int:2:2:int(start):bool(visibilitycheck) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
17 | 11:LookForPlayerEnemies:int:1:1:int(start) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
18 | 12:GetClosestPlayerEnemy:int:0:0 |
69
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
19 | 13:MoveLeft:void:1:1:int(speed) |
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
20 | 14:MoveRight:void:1:1:int(speed) |
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
21 | 15:MoveForward:void:1:1:int(speed) |
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
22 | 16:MoveBackwards:void:1:1:int(speed) |
8
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
23 | 17:StopMovement:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
24 | 18:StopForwardMovement:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
25 | 19:StopSidewaysMovement:void:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
26 | 20:CheckTerrain:int:2:2:int(distance):int(angle) |
69
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
27 | 21:PathToGoal:int:1:1:int(speed) |
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
28 | 22:PathToLastKnownEnemyPosition:int:1:1:int(speed) |
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
29 | 23:PathToLastHeardSound:int:1:1:int(speed) |
29a3e669d648
So it turns out that the functions I thought were taking float are actually taking int. So, with the only reason for float removed, the float type is removed as well. I'd rather have fixed point anyway.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
35
diff
changeset
|
30 | 24:Roam:int:1:1:int(speed) |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
31 | 25:GetPathingCostToItem:int:1:1:int(item) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
32 | 26:GetDistanceToItem:int:1:1:int(item) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
33 | 27:GetItemName:str:1:1:int(item) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
34 | 28:IsItemVisible:bool:1:1:int(item) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
35 | 29:SetGoal:void:1:1:int(item) |
8
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
36 | 30:BeginAimingAtEnemy:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
37 | 31:StopAimingAtEnemy:void:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
38 | 32:Turn:void:1:1:int(turnangle) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
39 | 33:GetCurrentAngle:int:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
40 | 34:SetEnemy:void:1:1:int(player) |
8
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
41 | 35:ClearEnemy:void:0:0 |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
42 | 36:IsEnemyAlive:bool:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
43 | 37:IsEnemyVisible:bool:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
44 | 38:GetDistanceToEnemy:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
45 | 39:GetPlayerDamagedBy:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
46 | 40:GetEnemyInvulnerabilityTicks:int:0:0 |
8
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
47 | 41:FireWeapon:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
48 | 42:BeginFiringWeapon:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
49 | 43:StopFiringWeapon:void:0:0 |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
50 | 44:GetCurrentWeapon:str:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
51 | 45:ChangeWeapon:void:1:1:str(weapon) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
52 | 46:GetWeaponFromItem:str:1:1:int(item) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
53 | 47:IsWeaponOwned:bool:1:1:int(item) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
54 | 48:IsFavoriteWeapon:bool:1:1:str(weapon) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
55 | 49:Say:void:1:1:str(message) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
56 | 50:SayFromFile:void:2:2:str(filename):str(section) |
20
d7b13805d1e0
Added string table and support for string parameters in commands.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
10
diff
changeset
|
57 | 51:SayFromChatFile:void:1:1:str(section) |
8
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
58 | 52:BeginChatting:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
59 | 53:StopChatting:void:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
60 | 54:ChatSectionExists:bool:1:1:str(section) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
61 | 55:ChatSectionExistsInFile:bool:2:2:str(filename):str(section) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
62 | 56:GetLastChatString:str:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
63 | 57:GetLastChatPlayer:str:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
64 | 58:GetChatFrequency:int:0:0 |
8
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
65 | 59:Jump:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
66 | 60:BeginJumping:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
67 | 61:StopJumping:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
68 | 62:Taunt:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
69 | 63:Respawn:void:0:0 |
c8bfa7e6ae1b
Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
5
diff
changeset
|
70 | 64:TryToJoinGame:void:0:0 |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
71 | 65:IsDead:bool:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
72 | 66:IsSpectating:bool:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
73 | 67:GetHealth:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
74 | 68:GetArmor:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
75 | 69:GetBaseHealth:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
76 | 70:GetBaseArmor:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
77 | 71:GetBotskill:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
78 | 72:GetAccuracy:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
79 | 73:GetIntellect:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
80 | 74:GetAnticipation:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
81 | 75:GetEvade:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
82 | 76:GetReactionTime:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
83 | 77:GetPerception:int:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
84 | 78:SetSkillIncrease:void:1:1:bool(increase) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
85 | 79:IsSkillIncreased:bool:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
86 | 80:SetSkillDecrease:void:1:1:bool(decrease) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
87 | 81:IsSkillDecreased:bool:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
88 | 82:GetGameMode:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
89 | 83:GetSpread:int:0:0 |
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
90 | 84:GetLastJoinedPlayer:str:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
91 | 85:GetPlayerName:str:1:1:int(player) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
92 | 86:GetReceivedMedal:int:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
93 | 87:ACS_Execute:void:1:5:int(script):int(map=0):int(arg0=0):int(arg1=0):int(arg2=0) |
5
2b75b0bac4db
Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff
changeset
|
94 | 88:GetFavoriteWeapon:str:0:0 |
10
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
95 | 89:SayFromLump:void:2:2:str(lump):str(section) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
96 | 90:SayFromChatLump:void:1:1:str(section) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
97 | 91:ChatSectionExistsInLump:bool:2:2:str(lump):str(section) |
2c0f76090372
Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents:
8
diff
changeset
|
98 | 92:ChatSectionExistsInChatLump:bool:1:1:str(section) |