Net Messages

New Member
Joined
Jan 9, 2003
Messages
4
Best answers
0
Sup guys, I'm working on some bot AI but am running a little short on time, got a work project comming up.

I got the basics done, and the exports added to the code so they pass through. Got the MOD ID, some basic Team and Char coding done to. But I hit the part where I have to start hunting through the debug code for the correct net messages and their returns, to speed it all up I was wondering if you could post a list of the net messages and what they can return. If not, thats ok to, I'll just have to hunt through the printouts.

Swift
 
New Member
Joined
Jan 9, 2003
Messages
4
Best answers
0
Ok, found them, a while ago, thank god no-one decided to jump in and help. :)

Team VGUI:

pfnMessageBegin: edict=5f58d78 dest=1 type=92
pfnWriteByte: 2
******Bot Saw Team Select VGUI NetMessage
pfnMessageEnd:

Type 92 is VGUI and pfnWriteByte: 2 is the Team selection menu.

*****Entered BotStartGame for MOD
*****Entered Bot Team Selection
FakeClientCommand=jointeam 1
ClientCommand: jointeam 1
pfnMessageBegin: edict=5f58d78 dest=1 type=92
pfnWriteByte: 3
pfnMessageEnd:

pfnWriteByte: 3 is the Model selection menu

"
ClientCommand: randompc
pfnGetInfoKeyBuffer:
pfnSetClientKeyValue: model frieza

I got a werid loop where the bot constantly re-enters BotStartGame but won't enter in the Team selection screen. I'm working on it now. Thanks for everyones help, oh wait.....
 

Hsu

New Member
💻 Oldtimer
Joined
Dec 4, 2001
Messages
2,306
Best answers
0
Do not dubble post.

Remember not everyone can help you with your topic. So if no one anwsers you its because they cant offer and help.
 
New Member
Joined
Nov 24, 2001
Messages
692
Best answers
0
Send Blade a pm, he should have the message list. I don't have the list for beta1 lying around, and i'm to lazy to create one :p
 
New Member
Joined
Jan 9, 2003
Messages
4
Best answers
0
First, it was not a double post. That would have been me crying about no-one helping, which I don't really care a whole lot about. Seoncd, I provided information in the post that could hopefully help someone else out, if they were trying to make a bot for your guys's MOD, but hey, who want coding support from the community. :)


Here is the Output from GetNewDLLFunctions:

Max Speed = 200



pfnRegUserMsg: pszName=VoiceMask msg=64
pfnRegUserMsg: pszName=ReqState msg=65
pfnRegUserMsg: pszName=CurWeapon msg=66
pfnRegUserMsg: pszName=Health msg=67
pfnRegUserMsg: pszName=Train msg=68
pfnRegUserMsg: pszName=HudText msg=69
pfnRegUserMsg: pszName=SayText msg=70
pfnRegUserMsg: pszName=TextMsg msg=71
pfnRegUserMsg: pszName=WeaponList msg=72
pfnRegUserMsg: pszName=ResetHUD msg=73
pfnRegUserMsg: pszName=InitHUD msg=74
pfnRegUserMsg: pszName=GameTitle msg=75
pfnRegUserMsg: pszName=DeathMsg msg=76
pfnRegUserMsg: pszName=ScoreInfo msg=77
pfnRegUserMsg: pszName=TeamInfo msg=78
pfnRegUserMsg: pszName=TeamScore msg=79
pfnRegUserMsg: pszName=GameMode msg=80
pfnRegUserMsg: pszName=MOTD msg=81
pfnRegUserMsg: pszName=ServerName msg=82
pfnRegUserMsg: pszName=WeapPickup msg=83
pfnRegUserMsg: pszName=ItemPickup msg=84
pfnRegUserMsg: pszName=HideWeapon msg=85
pfnRegUserMsg: pszName=SetFOV msg=86
pfnRegUserMsg: pszName=ShowMenu msg=87
pfnRegUserMsg: pszName=ScreenShake msg=88
pfnRegUserMsg: pszName=ScreenFade msg=89
pfnRegUserMsg: pszName=TeamNames msg=90
pfnRegUserMsg: pszName=Speed msg=91
pfnRegUserMsg: pszName=VGUIMenu msg=92
pfnRegUserMsg: pszName=ChangeView msg=93
pfnRegUserMsg: pszName=Charge msg=94
pfnRegUserMsg: pszName=MaxHealth msg=95
pfnRegUserMsg: pszName=Ki msg=96
pfnRegUserMsg: pszName=PowerLevel msg=97
pfnRegUserMsg: pszName=MaxPL msg=98
pfnRegUserMsg: pszName=Explosion msg=99
pfnRegUserMsg: pszName=PowerStrug msg=100
pfnRegUserMsg: pszName=ChargeSB msg=101
pfnRegUserMsg: pszName=StopChSB msg=102
pfnRegUserMsg: pszName=SensuBean msg=103
pfnRegUserMsg: pszName=PETrail msg=104
pfnRegUserMsg: pszName=EETrail msg=105
pfnRegUserMsg: pszName=KillTrail msg=106
pfnRegUserMsg: pszName=DBEnt msg=107
pfnRegUserMsg: pszName=AllowSpec msg=108
pfnRegUserMsg: pszName=Spectator msg=109
pfnRegUserMsg: pszName=Powerup msg=110
pfnRegUserMsg: pszName=StopPowerup msg=111
pfnRegUserMsg: pszName=Transform msg=112
pfnRegUserMsg: pszName=SetChrome msg=113
pfnRegUserMsg: pszName=DetachTrail msg=114
pfnRegUserMsg: pszName=Disc msg=115
pfnRegUserMsg: pszName=RemoveDisc msg=116
pfnRegUserMsg: pszName=SizeDisc msg=117
pfnRegUserMsg: pszName=BoundingBox msg=118
pfnRegUserMsg: pszName=Fog msg=119
pfnRegUserMsg: pszName=TransformFX msg=120
pfnRegUserMsg: pszName=StopTransFX msg=121
pfnRegUserMsg: pszName=MeleeFX msg=122
pfnRegUserMsg: pszName=TMelee msg=123
pfnRegUserMsg: pszName=DeTMelee msg=124
pfnRegUserMsg: pszName=BlobStart msg=125
pfnRegUserMsg: pszName=BlobUpdate msg=126
pfnRegUserMsg: pszName=BlobKill msg=127

Now VGUIMenu msg=92 is all I am intrested in so far. When the MOD sends Message 92 with a paylod of 2 in State 0, it's a team selection menu, you must return a ClientCommand of jointeam (1, 2 or 5) 1 = Good, 2 = Evil and 5 = Random Team.

Now then the MOD dll sends message 92 with a payload of 3, that (I assume) is the model selection menu. You need to return a command of (model xxx, or randompc) model xxx, where the xxx is the name of the model, seaming it looks like it was based on TFC from code, and netmessages returning the 'class' is more accurate. valid returns are:

model cell
model fatbuu
model frieza
model krillin
model piccolo
model goku
model trunks
model vegeta

I hope this helps someone out.
 
New Member
Joined
Nov 24, 2001
Messages
692
Best answers
0
As of beta1.1 jointeam 5 is invalid (it screwed up my class selects). After a class select, you should send just the class name, without model:
cell
buu
frieza
...
etc

The model things you see are commands to actually change the model. For more info about bot creating, contact [ESF]Blade, as i stated before.
 
New Member
Joined
Jan 9, 2003
Messages
4
Best answers
0
Thanks for the info, I think I got the infinate loop sorted out in BotStartGame. So jointeam 5 is out, is there another random team select option?
 

Users who are viewing this thread

Top Bottom