
diff -r d279af9afd6d -r 2c0f76090372 commands.def
--- a/commands.def	Sat Jul 14 04:17:06 2012 +0300
+++ b/commands.def	Sat Jul 14 15:44:38 2012 +0300
@@ -1,38 +1,38 @@
-0:changestate:void:1:1
-1:delay:void:1:1
-2:rand:int:2:2
+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:0:0
-4:LookForPowerups:int:2:2
-5:LookForWeapons:int:2:2
-6:LookForAmmo:int:2:2
-7:LookForBaseHealth:int:2:2
-8:LookForBaseArmor:int:2:2
-9:LookForSuperHealth:int:2:2
-10:LookForSuperArmor:int:2:2
-11:LookForPlayerEnemies:int:1:1
+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
-14:MoveRight:void:1:1
-15:MoveForward:void:1:1
-16:MoveBackwards:void:1:1
+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
-21:PathToGoal:int:1:1
-22:PathToLastKnownEnemyPosition:int:1:1
-23:PathToLastHeardSound:int:1:1
-24:Roam:int:1:1
-25:GetPathingCostToItem:int:1:1
-26:GetDistanceToItem:int:1:1
-27:GetItemName:str:1:1
-28:IsItemVisible:bool:1:1
-29:SetGoal:void:1:1
+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
+32:Turn:void:1:1:int(turnangle)
 33:GetCurrentAngle:int:0:0
-34:SetEnemy:void:1:1
+34:SetEnemy:void:1:1:int(player)
 35:ClearEnemy:void:0:0
 36:IsEnemyAlive:bool:0:0
 37:IsEnemyVisible:bool:0:0
@@ -43,17 +43,17 @@
 42:BeginFiringWeapon:void:0:0
 43:StopFiringWeapon:void:0:0
 44:GetCurrentWeapon:str:0:0
-45:ChangeWeapon:void:0:0
-46:GetWeaponFromItem:str:1:1
-47:IsWeaponOwned:bool:1:1
-48:IsFavoriteWeapon:bool:0:0
-49:Say:void:0:0
-50:SayFromFile:void:0:0
-51:SayFromChatFile:void: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:2:2:str(filename):str(section)
 52:BeginChatting:void:0:0
 53:StopChatting:void:0:0
-54:ChatSectionExists:bool:0:0
-55:ChatSectionExistsInFile:bool: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
@@ -76,18 +76,18 @@
 75:GetEvade:int:0:0
 76:GetReactionTime:int:0:0
 77:GetPerception:int:0:0
-78:SetSkillIncrease:void:1:1
+78:SetSkillIncrease:void:1:1:bool(increase)
 79:IsSkillIncreased:bool:0:0
-80:SetSkillDecrease:void:1:1
+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
+85:GetPlayerName:str:1:1:int(player)
 86:GetReceivedMedal:int:0:0
-87:ACS_Execute:void:5:5
+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:0:0
-90:SayFromChatLump:void:0:0
-91:ChatSectionExistsInLump:bool:0:0
-92:ChatSectionExistsInChatLump:bool:0:0
\ No newline at end of file
+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)
\ No newline at end of file




