commands.def

Sun, 15 Jul 2012 18:56:26 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 15 Jul 2012 18:56:26 +0300
changeset 26
54eaea6dc27c
parent 21
ae602e667879
child 28
fb46d3d40064
permissions
-rw-r--r--

Mainloop and onenter definitions are now written into separate buffers first and only written to file after state ends. Why? Zandronum seems to demand that mainloop definitions MUST be written right after any onenter one. This way, mainloop and onenter definitions can be written without this restriction in the script. Also now I have a cool uchar-buffer class :)

10
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
1 0:changestate:void:1:1:str(statename)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
2 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
3 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
4 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
5 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
6 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
7 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
8 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
9 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
10 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
11 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
12 11:LookForPlayerEnemies:int:1:1:int(start)
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
13 12:GetClosestPlayerEnemy: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
14 13:MoveLeft:void:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
15 14:MoveRight:void:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
16 15:MoveForward:void:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
17 16:MoveBackwards:void:1:1:float(speed)
8
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
18 17:StopMovement:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
19 18:StopForwardMovement:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
20 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
21 20:CheckTerrain:int:2:2:int(distance):int(angle)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
22 21:PathToGoal:int:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
23 22:PathToLastKnownEnemyPosition:int:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
24 23:PathToLastHeardSound:int:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
25 24:Roam:int:1:1:float(speed)
2c0f76090372 Restructured the command def parser, added parameter lists to definition file.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 8
diff changeset
26 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
27 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
28 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
29 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
30 29:SetGoal:void:1:1:int(item)
8
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
31 30:BeginAimingAtEnemy:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
32 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
33 32:Turn:void:1:1:int(turnangle)
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
34 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
35 34:SetEnemy:void:1:1:int(player)
8
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
36 35:ClearEnemy:void:0:0
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
37 36:IsEnemyAlive:bool:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
38 37:IsEnemyVisible:bool:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
39 38:GetDistanceToEnemy:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
40 39:GetPlayerDamagedBy:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
41 40:GetEnemyInvulnerabilityTicks:int:0:0
8
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
42 41:FireWeapon:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
43 42:BeginFiringWeapon:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
44 43:StopFiringWeapon:void:0:0
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
45 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
46 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
47 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
48 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
49 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
50 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
51 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
52 51:SayFromChatFile:void:1:1:str(section)
8
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
53 52:BeginChatting:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
54 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
55 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
56 55:ChatSectionExistsInFile:bool:2:2:str(filename):str(section)
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
57 56:GetLastChatString:str:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
58 57:GetLastChatPlayer:str:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
59 58:GetChatFrequency:int:0:0
8
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
60 59:Jump:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
61 60:BeginJumping:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
62 61:StopJumping:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
63 62:Taunt:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
64 63:Respawn:void:0:0
c8bfa7e6ae1b Commands are now read properly.
Teemu Piippo <crimsondusk64@gmail.com>
parents: 5
diff changeset
65 64:TryToJoinGame:void:0:0
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
66 65:IsDead:bool:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
67 66:IsSpectating:bool:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
68 67:GetHealth:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
69 68:GetArmor:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
70 69:GetBaseHealth:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
71 70:GetBaseArmor:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
72 71:GetBotskill:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
73 72:GetAccuracy:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
74 73:GetIntellect:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
75 74:GetAnticipation:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
76 75:GetEvade:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
77 76:GetReactionTime:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
78 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
79 78:SetSkillIncrease:void:1:1:bool(increase)
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
80 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
81 80:SetSkillDecrease:void:1:1:bool(decrease)
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
82 81:IsSkillDecreased:bool:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
83 82:GetGameMode:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
84 83:GetSpread:int:0:0
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
85 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
86 85:GetPlayerName:str:1:1:int(player)
5
2b75b0bac4db Added command definition file
Teemu Piippo <crimsondusk64@gmail.com>
parents:
diff changeset
87 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
88 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
89 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
90 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
91 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
92 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
93 92:ChatSectionExistsInChatLump:bool:1:1:str(section)

mercurial