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 :)

0:changestate:void:1:1:str(statename)
1:delay:void:1:1:int(tics)
2:rand:int:2:2:int(a):int(b)
3:StringsAreEqual:bool:2:2:str(string1):str(string2)
4:LookForPowerups:int:2:2:int(start):bool(visibilitycheck)
5:LookForWeapons:int:2:2:int(start):bool(visibilitycheck)
6:LookForAmmo:int:2:2:int(start):bool(visibilitycheck)
7:LookForBaseHealth:int:2:2:int(start):bool(visibilitycheck)
8:LookForBaseArmor:int:2:2:int(start):bool(visibilitycheck)
9:LookForSuperHealth:int:2:2:int(start):bool(visibilitycheck)
10:LookForSuperArmor:int:2:2:int(start):bool(visibilitycheck)
11:LookForPlayerEnemies:int:1:1:int(start)
12:GetClosestPlayerEnemy:int:0:0
13:MoveLeft:void:1:1:float(speed)
14:MoveRight:void:1:1:float(speed)
15:MoveForward:void:1:1:float(speed)
16:MoveBackwards:void:1:1:float(speed)
17:StopMovement:void:0:0
18:StopForwardMovement:void:0:0
19:StopSidewaysMovement:void:0:0
20:CheckTerrain:int:2:2:int(distance):int(angle)
21:PathToGoal:int:1:1:float(speed)
22:PathToLastKnownEnemyPosition:int:1:1:float(speed)
23:PathToLastHeardSound:int:1:1:float(speed)
24:Roam:int:1:1:float(speed)
25:GetPathingCostToItem:int:1:1:int(item)
26:GetDistanceToItem:int:1:1:int(item)
27:GetItemName:str:1:1:int(item)
28:IsItemVisible:bool:1:1:int(item)
29:SetGoal:void:1:1:int(item)
30:BeginAimingAtEnemy:void:0:0
31:StopAimingAtEnemy:void:0:0
32:Turn:void:1:1:int(turnangle)
33:GetCurrentAngle:int:0:0
34:SetEnemy:void:1:1:int(player)
35:ClearEnemy:void:0:0
36:IsEnemyAlive:bool:0:0
37:IsEnemyVisible:bool:0:0
38:GetDistanceToEnemy:int:0:0
39:GetPlayerDamagedBy:int:0:0
40:GetEnemyInvulnerabilityTicks:int:0:0
41:FireWeapon:void:0:0
42:BeginFiringWeapon:void:0:0
43:StopFiringWeapon:void:0:0
44:GetCurrentWeapon:str:0:0
45:ChangeWeapon:void:1:1:str(weapon)
46:GetWeaponFromItem:str:1:1:int(item)
47:IsWeaponOwned:bool:1:1:int(item)
48:IsFavoriteWeapon:bool:1:1:str(weapon)
49:Say:void:1:1:str(message)
50:SayFromFile:void:2:2:str(filename):str(section)
51:SayFromChatFile:void:1:1:str(section)
52:BeginChatting:void:0:0
53:StopChatting:void:0:0
54:ChatSectionExists:bool:1:1:str(section)
55:ChatSectionExistsInFile:bool:2:2:str(filename):str(section)
56:GetLastChatString:str:0:0
57:GetLastChatPlayer:str:0:0
58:GetChatFrequency:int:0:0
59:Jump:void:0:0
60:BeginJumping:void:0:0
61:StopJumping:void:0:0
62:Taunt:void:0:0
63:Respawn:void:0:0
64:TryToJoinGame:void:0:0
65:IsDead:bool:0:0
66:IsSpectating:bool:0:0
67:GetHealth:int:0:0
68:GetArmor:int:0:0
69:GetBaseHealth:int:0:0
70:GetBaseArmor:int:0:0
71:GetBotskill:int:0:0
72:GetAccuracy:int:0:0
73:GetIntellect:int:0:0
74:GetAnticipation:int:0:0
75:GetEvade:int:0:0
76:GetReactionTime:int:0:0
77:GetPerception:int:0:0
78:SetSkillIncrease:void:1:1:bool(increase)
79:IsSkillIncreased:bool:0:0
80:SetSkillDecrease:void:1:1:bool(decrease)
81:IsSkillDecreased:bool:0:0
82:GetGameMode:int:0:0
83:GetSpread:int:0:0
84:GetLastJoinedPlayer:str:0:0
85:GetPlayerName:str:1:1:int(player)
86:GetReceivedMedal:int:0:0
87:ACS_Execute:void:1:5:int(script):int(map=0):int(arg0=0):int(arg1=0):int(arg2=0)
88:GetFavoriteWeapon:str:0:0
89:SayFromLump:void:2:2:str(lump):str(section)
90:SayFromChatLump:void:1:1:str(section)
91:ChatSectionExistsInLump:bool:2:2:str(lump):str(section)
92:ChatSectionExistsInChatLump:bool:1:1:str(section)

mercurial