.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   DOD WeaponList (http://forums.bots-united.com/showthread.php?t=4578)

Danni 15-10-2005 01:06

DOD WeaponList
 
I am presently looking at starting an OpenSource DOD Bot project and at the moment I have horrible merge of Blitzbot 2.0 sources and HPB4.0_MM.

It runs, but has some issues with bots joining the game. However at present my issues are with the WeaponList message format. I understand DOD has an addition to the standard format for clip size, but there is no string in the message at all?

e.g. (The first byte should be a string from all the sources i have looked at. Notice weaponid is also borked.)

pfnMessageBegin: edict=442b80c dest=1 type=79
pfnWriteByte: 6
pfnWriteByte: 180
pfnWriteByte: -1
pfnWriteByte: -1
pfnWriteByte: 2
pfnWriteByte: 0
pfnWriteShort: 27
pfnWriteByte: 128
pfnWriteByte: 30
pfnMessageEnd:

pfnMessageBegin: edict=442b80c dest=1 type=79
pfnWriteByte: 4
pfnWriteByte: 18
pfnWriteByte: -1
pfnWriteByte: -1
pfnWriteByte: 1
pfnWriteByte: 0
pfnWriteShort: 28
pfnWriteByte: 64
pfnWriteByte: 6
pfnMessageEnd:

Anyone know whats up? I thourght at first I had the wrong messageID# assigned, so I used the old method of mapping them from regusermsg. I at least know that is not the problem. I cannot find any referance on this format? :D

Danni 15-10-2005 09:15

Re: DOD WeaponList
 
Doh! Just ignore the fact we are missing the string at the beginning... Silly me. :) Now to find out why they are ingame, but listed as spectators. :D

Cheeseh 20-10-2005 19:14

Re: DOD WeaponList
 
Quote:

Now to find out why they are ingame, but listed as spectators.
try the old FakeClientCommand(pBot,"_firstspawn"); trick, dunno if it will work for DOD though

Pierre-Marie Baty 21-10-2005 03:01

Re: DOD WeaponList
 
I believe that trick works for DMC only.

sparky99 02-10-2012 08:44

Re: DOD WeaponList
 
Did you finnish your DoD bot?

You need to thik of how the bot will get throu the VGUI.

You need to get your bot past the MOTD
Then select a Team
Then select a class

Then he should spawn.


All times are GMT +2. The time now is 12:49.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.