bots
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@300 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+23
-24
@@ -27,10 +27,12 @@ void CACBot::Spawn()
|
||||
m_pMyEnt->eyeheight = 4.25f;
|
||||
m_pMyEnt->aboveeye = 0.7f;
|
||||
m_pMyEnt->radius = 1.1f;
|
||||
m_pMyEnt->primary = m_pMyEnt->nextprimary = rnd(3)+GUN_PISTOL;
|
||||
|
||||
spawnplayer(m_pMyEnt);
|
||||
|
||||
m_pMyEnt->targetyaw = m_pMyEnt->yaw = m_pMyEnt->targetpitch = m_pMyEnt->pitch = 0.0f;
|
||||
m_pMyEnt->primary = m_pMyEnt->nextprimary = GUN_ASSULT;
|
||||
m_pMyEnt->move = 0;
|
||||
m_pMyEnt->enemy = NULL;
|
||||
m_pMyEnt->maxspeed = 16.0f;
|
||||
@@ -40,8 +42,9 @@ void CACBot::Spawn()
|
||||
m_pMyEnt->roll = 0;
|
||||
m_pMyEnt->state = CS_ALIVE;
|
||||
m_pMyEnt->anger = 0;
|
||||
m_pMyEnt->pBot = this;
|
||||
loopi(NUMGUNS) m_pMyEnt->ammo[i] = 0;
|
||||
m_pMyEnt->pBot = this;
|
||||
// loopi(NUMGUNS) m_pMyEnt->ammo[i] = m_pMyEnt->mag[i] = 0;
|
||||
|
||||
/* UNDONE
|
||||
m_pMyEnt->ammo[GUN_FIST] = 1;
|
||||
if(m_noitems)
|
||||
@@ -92,9 +95,9 @@ void CACBot::Spawn()
|
||||
}*/
|
||||
|
||||
m_pMyEnt->ammo[GUN_KNIFE] = 1;
|
||||
m_pMyEnt->ammo[GUN_SEMIPISTOL] = 5;
|
||||
m_pMyEnt->mag[GUN_SEMIPISTOL] = 5;
|
||||
SelectGun(GUN_SEMIPISTOL);
|
||||
m_pMyEnt->ammo[GUN_PISTOL] = 5;
|
||||
m_pMyEnt->mag[GUN_PISTOL] = 5;
|
||||
SelectGun(m_pMyEnt->primary);
|
||||
|
||||
m_eCurrentBotState = STATE_NORMAL;
|
||||
m_iShootDelay = m_iChangeWeaponDelay = 0;
|
||||
@@ -137,7 +140,8 @@ void CACBot::Spawn()
|
||||
void CACBot::BotPain(int damage, dynent *d)
|
||||
{
|
||||
if(m_pMyEnt->state!=CS_ALIVE || editmode || intermission) return;
|
||||
int ad = damage*(m_pMyEnt->armourtype+1)*20/100; // let armour absorb when possible
|
||||
//fixmebot
|
||||
int ad = damage/**(m_pMyEnt->armourtype+1)*20/100*/; // let armour absorb when possible
|
||||
if(ad>m_pMyEnt->armour) ad = m_pMyEnt->armour;
|
||||
m_pMyEnt->armour -= ad;
|
||||
damage -= ad;
|
||||
@@ -242,17 +246,11 @@ void CACBot::PickUp(int n)
|
||||
int ammo = np*2;
|
||||
switch(ents[n].type)
|
||||
{
|
||||
case I_SEMIPISTOL: AddItem(n, m_pMyEnt->ammo[1], ammo); break;
|
||||
case I_AUTOPISTOL: AddItem(n, m_pMyEnt->ammo[2], ammo); break;
|
||||
case I_SHOTGUN: AddItem(n, m_pMyEnt->ammo[3], ammo); break;
|
||||
case I_SNIPER: AddItem(n, m_pMyEnt->ammo[4], ammo); break;
|
||||
case I_SUBGUN: AddItem(n, m_pMyEnt->ammo[5], ammo); break;
|
||||
case I_CARBINE: AddItem(n, m_pMyEnt->ammo[6], ammo); break;
|
||||
case I_SEMIRIFLE: AddItem(n, m_pMyEnt->ammo[7], ammo); break;
|
||||
case I_AUTORIFLE: AddItem(n, m_pMyEnt->ammo[8], ammo); break;
|
||||
case I_GRENADE: AddItem(n, m_pMyEnt->ammo[9], ammo); break;
|
||||
case I_CLIPS: AddItem(n, m_pMyEnt->ammo[GUN_PISTOL], ammo); break;
|
||||
case I_AMMO: AddItem(n, m_pMyEnt->ammo[m_pMyEnt->primary], ammo); break;
|
||||
case I_GRENADE: AddItem(n, m_pMyEnt->ammo[GUN_GRENADE], ammo); break;
|
||||
|
||||
case I_HELMET:
|
||||
/* case I_HELMET:
|
||||
// (100h/100g only absorbs 166 damage)
|
||||
if(m_pMyEnt->armourtype==A_YELLOW && m_pMyEnt->armour>66) break;
|
||||
AddItem(n, m_pMyEnt->armour, 20);
|
||||
@@ -264,9 +262,9 @@ void CACBot::PickUp(int n)
|
||||
|
||||
case OBJ_ITEM:
|
||||
AddItem(n, m_pMyEnt->quadmillis, 60);
|
||||
break;
|
||||
break;*/
|
||||
|
||||
case TRIGGER:
|
||||
/* case TRIGGER:
|
||||
ents[n].spawned = false;
|
||||
triggertime = lastmillis;
|
||||
trigger(ents[n].attr1, ents[n].attr2, false); // needs to go over server for multiplayer
|
||||
@@ -280,8 +278,8 @@ void CACBot::PickUp(int n)
|
||||
m_iCheckEntsDelay = lastmillis + RandomLong(5000, 10000);
|
||||
}
|
||||
|
||||
BotManager.PickNextTrigger();
|
||||
break;
|
||||
BotManager.PickNextTrigger();
|
||||
break;*/
|
||||
};
|
||||
};
|
||||
|
||||
@@ -290,10 +288,11 @@ void CACBot::AddItem(int i, int &v, int spawnsec)
|
||||
if((i>=sents.length()) || (!sents[i].spawned))
|
||||
return;
|
||||
|
||||
if(v>=itemstats[ents[i].type-I_SEMIPISTOL].max) // don't pick up if not needed
|
||||
//fixmebot
|
||||
if(v>=itemstats[ents[i].type-1].max) // don't pick up if not needed
|
||||
return;
|
||||
|
||||
itemstat &is = itemstats[ents[i].type-I_SEMIPISTOL];
|
||||
itemstat &is = itemstats[ents[i].type-1];
|
||||
ents[i].spawned = false;
|
||||
v += is.add;
|
||||
if(v>is.max) v = is.max;
|
||||
@@ -301,7 +300,7 @@ void CACBot::AddItem(int i, int &v, int spawnsec)
|
||||
sents[i].spawned = false;
|
||||
sents[i].spawnsecs = spawnsec;
|
||||
|
||||
addmsg(1, 4, SV_ITEMPICKUP, i, m_classicsp ? 100000 : spawnsec, false);
|
||||
addmsg(1, 3, SV_BOTITEMPICKUP, i, m_classicsp ? 100000 : spawnsec);
|
||||
|
||||
// HACK: Reset ent goal if bot was looking for for this ent
|
||||
if (m_pTargetEnt == &ents[i])
|
||||
@@ -310,7 +309,7 @@ void CACBot::AddItem(int i, int &v, int spawnsec)
|
||||
m_vGoal = g_vecZero;
|
||||
ResetWaypointVars();
|
||||
m_iCheckEntsDelay = lastmillis + RandomLong(5000, 10000);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// AC Bot class end
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
|
||||
// AI Functions
|
||||
virtual bool ChoosePreferredWeapon(void);
|
||||
void Reload(int Gun);
|
||||
virtual entity *SearchForEnts(bool bUseWPs, float flRange=9999.0f,
|
||||
float flMaxHeight=JUMP_HEIGHT);
|
||||
virtual bool HeadToTargetEnt(void);
|
||||
|
||||
+104
-68
@@ -21,39 +21,105 @@ weaponinfo_s WeaponInfoTable[MAX_WEAPONS] =
|
||||
{
|
||||
// KNIFE
|
||||
{ TYPE_MELEE, 0.0f, 3.5f, 0.0f, 5.0f, 1 },
|
||||
// SEMI PISTOL
|
||||
{ TYPE_NORMAL, 5.0f, 12.0f, 0.0f, 50.0f, 4 },
|
||||
// AUTO PISTOL
|
||||
{ TYPE_AUTO, 10.0f, 20.0f, 0.0f, 100.0f, 10 },
|
||||
// PISTOL
|
||||
{ TYPE_NORMAL, 5.0f, 12.0f, 0.0f, 50.0f, 6 },
|
||||
// SHOTGUN
|
||||
{ TYPE_SHOTGUN, 15.0f, 25.0f, 10.0f, 70.0f, 3 },
|
||||
// SNIPER
|
||||
{ TYPE_SNIPER, 12.0f, 25.0f, 0.0f, 100.0f, 4 },
|
||||
{ TYPE_SHOTGUN, 0.0f, 20.0f, 0.0f, 70.0f, 4 },
|
||||
// SUBGUN
|
||||
{ TYPE_AUTO, 12.0f, 25.0f, 0.0f, 100.0f, 4 },
|
||||
|
||||
/* EDIT: Adrian Henke - those are not used yet
|
||||
// CARBINE
|
||||
{ TYPE_AUTO, 12.0f, 25.0f, 0.0f, 100.0f, 4 },
|
||||
// SEMI RIFLE
|
||||
{ TYPE_SNIPER, 12.0f, 25.0f, 0.0f, 100.0f, 4 },
|
||||
// AUTO RIFLE
|
||||
{ TYPE_AUTO, 12.0f, 25.0f, 0.0f, 100.0f, 4 },
|
||||
*/
|
||||
|
||||
{ TYPE_AUTO, 12.0f, 25.0f, 0.0f, 100.0f, 15 },
|
||||
// SNIPER
|
||||
{ TYPE_SNIPER, 15.0f, 25.0f, 0.0f, 100.0f, 3 },
|
||||
// ASSAULT
|
||||
{ TYPE_AUTO, 12.0f, 25.0f, 0.0f, 100.0f, 10 },
|
||||
// GRENADE
|
||||
{ TYPE_GRENADE, 12.0f, 25.0f, 0.0f, 100.0f, 4 }
|
||||
{ TYPE_GRENADE, 12.0f, 25.0f, 0.0f, 50.0f, 1 }
|
||||
};
|
||||
|
||||
// Code of CACBot - Start
|
||||
|
||||
bool CACBot::ChoosePreferredWeapon()
|
||||
{
|
||||
if (CBot::ChoosePreferredWeapon())
|
||||
return true;
|
||||
else
|
||||
return SelectGun(GUN_KNIFE);
|
||||
}
|
||||
printf("chose weapon\n");
|
||||
TMultiChoice<int> WeaponChoices;
|
||||
short sWeaponScore;
|
||||
float flDist = GetDistance(m_pMyEnt->enemy->o);
|
||||
|
||||
if ((m_iChangeWeaponDelay > lastmillis) && (m_pMyEnt->ammo[m_pMyEnt->gunselect]))
|
||||
{
|
||||
if ((WeaponInfoTable[m_pMyEnt->gunselect].eWeaponType != TYPE_MELEE) || (flDist <= 3.5f))
|
||||
return true;
|
||||
}
|
||||
|
||||
// Choose a weapon
|
||||
for(int i=0;i<MAX_WEAPONS;i++)
|
||||
{
|
||||
// If no ammo for this weapon, skip it
|
||||
if (m_pMyEnt->ammo[i] == 0) continue;
|
||||
|
||||
sWeaponScore = 5; // Minimal score for a weapon
|
||||
|
||||
if ((flDist >= WeaponInfoTable[i].flMinDesiredDistance) &&
|
||||
(flDist <= WeaponInfoTable[i].flMaxDesiredDistance))
|
||||
{
|
||||
// In desired range for this weapon
|
||||
sWeaponScore += 5; // Increase score much
|
||||
}
|
||||
else if ((flDist < WeaponInfoTable[i].flMinFireDistance) ||
|
||||
(flDist > WeaponInfoTable[i].flMaxFireDistance))
|
||||
continue; // Wrong distance for this weapon
|
||||
|
||||
// The ideal distance would be between the Min and Max desired distance.
|
||||
// Score on the difference of the avarage of the Min and Max desired distance.
|
||||
float flAvarage = (WeaponInfoTable[i].flMinDesiredDistance +
|
||||
WeaponInfoTable[i].flMaxDesiredDistance) / 2.0f;
|
||||
float flIdealDiff = fabs(flDist - flAvarage);
|
||||
|
||||
if (flIdealDiff < 0.5f) // Close to ideal distance
|
||||
sWeaponScore += 4;
|
||||
else if (flIdealDiff <= 1.0f)
|
||||
sWeaponScore += 2;
|
||||
|
||||
// Now rate the weapon on available ammo...
|
||||
if (WeaponInfoTable[i].sMinDesiredAmmo > 0)
|
||||
{
|
||||
// Calculate how much percent of the min desired ammo the bot has
|
||||
float flDesiredPercent = (float(m_pMyEnt->mag[i]) /
|
||||
float(WeaponInfoTable[i].sMinDesiredAmmo)) *
|
||||
100.0f;
|
||||
|
||||
if(flDesiredPercent >= 175.0f)
|
||||
sWeaponScore += 4;
|
||||
else if(flDesiredPercent >= 100.0f)
|
||||
sWeaponScore += 3;
|
||||
}
|
||||
|
||||
WeaponChoices.Insert(i, sWeaponScore);
|
||||
}
|
||||
|
||||
int WeaponSelect;
|
||||
if (WeaponChoices.GetSelection(WeaponSelect))
|
||||
{
|
||||
m_iChangeWeaponDelay = lastmillis + RandomLong(2000, 8000);
|
||||
m_bShootAtFeet = ((WeaponInfoTable[WeaponSelect].eWeaponType==TYPE_ROCKET) &&
|
||||
(RandomLong(1, 100) <=
|
||||
m_pBotSkill->sShootAtFeetWithRLPercent));
|
||||
if(SelectGun(WeaponSelect))
|
||||
{
|
||||
if(m_pMyEnt->mag[WeaponSelect]==0) reload(m_pMyEnt); // fixme, more intelligent reload
|
||||
printf("gun selected %i\n", WeaponSelect);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
|
||||
};
|
||||
|
||||
void CACBot::Reload(int Gun)
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
entity *CACBot::SearchForEnts(bool bUseWPs, float flRange, float flMaxHeight)
|
||||
{
|
||||
@@ -86,56 +152,26 @@ entity *CACBot::SearchForEnts(bool bUseWPs, float flRange, float flMaxHeight)
|
||||
if (OUTBORD(e.x, e.y)) continue;
|
||||
|
||||
bool bInteresting = false;
|
||||
short sAmmo = 0, sMaxAmmo = itemstats[e.type-I_SEMIPISTOL].max;
|
||||
|
||||
short sAmmo = 0, sMaxAmmo = 0;
|
||||
//fixmebot
|
||||
switch(e.type)
|
||||
{
|
||||
case I_SEMIPISTOL:
|
||||
bInteresting = (m_pMyEnt->ammo[1]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[1];
|
||||
case I_CLIPS:
|
||||
sMaxAmmo = itemstats[GUN_PISTOL-1].max;
|
||||
bInteresting = (m_pMyEnt->ammo[GUN_PISTOL]<sMaxAmmo);
|
||||
sAmmo = m_pMyEnt->ammo[GUN_PISTOL];
|
||||
break;
|
||||
case I_AUTOPISTOL:
|
||||
bInteresting = (m_pMyEnt->ammo[2]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[2];
|
||||
case I_AMMO:
|
||||
sMaxAmmo = itemstats[m_pMyEnt->primary-1].max;
|
||||
bInteresting = (m_pMyEnt->ammo[m_pMyEnt->primary]<sMaxAmmo);
|
||||
sAmmo = m_pMyEnt->ammo[m_pMyEnt->primary];
|
||||
break;
|
||||
case I_SHOTGUN:
|
||||
bInteresting = (m_pMyEnt->ammo[3]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[3];
|
||||
break;
|
||||
case I_SNIPER:
|
||||
bInteresting = (m_pMyEnt->ammo[4]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[4];
|
||||
break;
|
||||
case I_SUBGUN:
|
||||
bInteresting = (m_pMyEnt->ammo[5]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[4];
|
||||
break;
|
||||
case I_CARBINE:
|
||||
bInteresting = (m_pMyEnt->ammo[6]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[4];
|
||||
break;
|
||||
case I_SEMIRIFLE:
|
||||
bInteresting = (m_pMyEnt->ammo[7]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[4];
|
||||
break;
|
||||
case I_AUTORIFLE:
|
||||
bInteresting = (m_pMyEnt->ammo[8]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[4];
|
||||
break;
|
||||
case I_GRENADE:
|
||||
bInteresting = (m_pMyEnt->ammo[9]<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->ammo[4];
|
||||
break;
|
||||
case I_HELMET:
|
||||
bInteresting = ((m_pMyEnt->armour<itemstats[e.type-I_SEMIPISTOL].max) &&
|
||||
(m_pMyEnt->armourtype!=A_YELLOW || m_pMyEnt->armour<=66));
|
||||
sAmmo = m_pMyEnt->armour;
|
||||
sMaxAmmo = itemstats[GUN_GRENADE-1].max;
|
||||
bInteresting = (m_pMyEnt->ammo[GUN_GRENADE]<sMaxAmmo);
|
||||
sAmmo = m_pMyEnt->ammo[GUN_GRENADE];
|
||||
break;
|
||||
case I_ARMOUR:
|
||||
bInteresting = (m_pMyEnt->armour<itemstats[e.type-I_SEMIPISTOL].max);
|
||||
sAmmo = m_pMyEnt->armour;
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
if (!bInteresting)
|
||||
continue; // Not an interesting item, skip
|
||||
|
||||
@@ -376,9 +376,7 @@ bool CBot::SelectGun(int Gun)
|
||||
if (m_pMyEnt->ammo[Gun])
|
||||
{
|
||||
//temporary doc out argh
|
||||
//if (m_pMyEnt->gunselect != Gun)
|
||||
// botplaysound(S_WEAPLOAD, m_pMyEnt);
|
||||
|
||||
/* if (m_pMyEnt->gunselect != Gun) botplaysound(S_WEAPLOAD, m_pMyEnt); */
|
||||
m_pMyEnt->gunselect = Gun;
|
||||
return true;
|
||||
}
|
||||
|
||||
+11
-7
@@ -86,6 +86,10 @@ inline void debugbeam(vec &s, vec &e) { /*if (!dedserv) particle_trail(1, 500, s
|
||||
#define DOWN (1<<6)
|
||||
#define DIR_NONE 0
|
||||
|
||||
//fixmebot
|
||||
#define m_sp 1000
|
||||
#define m_classicsp 1000
|
||||
|
||||
enum EBotCommands // For voting of bot commands
|
||||
{
|
||||
COMMAND_ADDBOT=0,
|
||||
@@ -146,7 +150,7 @@ enum ECurrentBotState
|
||||
STATE_HUNT, // Bot is hunting an enemy
|
||||
STATE_ENT, // Bot is heading to an entity
|
||||
STATE_SP, // Bot is doing sp specific stuff
|
||||
STATE_NORMAL // Bot is doing normal navaigation
|
||||
STATE_NORMAL // Bot is doing normal navigation
|
||||
};
|
||||
|
||||
struct unreachable_ent_s
|
||||
@@ -233,10 +237,10 @@ public:
|
||||
void AimToIdeal(void);
|
||||
float ChangeAngle(float speed, float ideal, float current);
|
||||
bool SelectGun(int Gun);
|
||||
virtual void CheckItemPickup(void) = NULL;
|
||||
virtual void PickUp(int n) = NULL;
|
||||
virtual void AddItem(int i, int &v, int spawnsec) = NULL;
|
||||
virtual void BotPain(int damage, dynent *d) = NULL;
|
||||
virtual void CheckItemPickup(void) = 0;
|
||||
virtual void PickUp(int n) = 0;
|
||||
virtual void AddItem(int i, int &v, int spawnsec) = 0;
|
||||
virtual void BotPain(int damage, dynent *d) = 0;
|
||||
void SendBotInfo(void);
|
||||
float GetDistance(const vec &o);
|
||||
float GetDistance(const vec &v1, const vec &v2);
|
||||
@@ -275,10 +279,10 @@ public:
|
||||
virtual bool ChoosePreferredWeapon(void);
|
||||
virtual entity *SearchForEnts(bool bUseWPs, float flRange=9999.0f,
|
||||
float flMaxHeight=JUMP_HEIGHT) = NULL;
|
||||
virtual bool HeadToTargetEnt(void) = NULL;
|
||||
virtual bool HeadToTargetEnt(void) = 0;
|
||||
bool CheckItems(void);
|
||||
bool InUnreachableList(entity *e);
|
||||
virtual bool DoSPStuff(void) = NULL;
|
||||
virtual bool DoSPStuff(void) = 0;
|
||||
vec GetEnemyPos(dynent *d);
|
||||
bool AStar(void);
|
||||
float AStarCost(waypoint_s *pWP1, waypoint_s *pWP2);
|
||||
|
||||
@@ -919,7 +919,7 @@ void CBot::ShootEnemy()
|
||||
// Add shoot delay
|
||||
m_iShootDelay = lastmillis + GetShootDelay();
|
||||
}
|
||||
ChoosePreferredWeapon();
|
||||
ChoosePreferredWeapon();
|
||||
}
|
||||
#ifndef RELEASE_BUILD
|
||||
else
|
||||
@@ -2190,9 +2190,10 @@ void CBot::HearSound(int n, vec *o)
|
||||
if (m_pMyEnt->enemy) return;
|
||||
|
||||
// Is the sound not interesting?
|
||||
if ((n==S_DIE1) || (n==S_DIE2) || (n==S_DEATHR) || (n==S_DEATHE) || (n==S_DEATHS) ||
|
||||
//fixmebot
|
||||
/* if ((n==S_DIE1) || (n==S_DIE2) || (n==S_DEATHR) || (n==S_DEATHE) || (n==S_DEATHS) ||
|
||||
(n==S_DEATHB) || (n==S_DEATHH) || (n==S_DEATHD) || (n==S_PIGGR2))
|
||||
return;
|
||||
return;*/
|
||||
|
||||
int soundvol = m_pBotSkill->iMaxHearVolume -
|
||||
(int)(GetDistance(*o)*3*m_pBotSkill->iMaxHearVolume/255);
|
||||
|
||||
@@ -471,7 +471,7 @@ private:
|
||||
|
||||
|
||||
// ==================================================================
|
||||
// Code of TMutiChoice - Begin
|
||||
// Code of TMultiChoice - Begin
|
||||
// ==================================================================
|
||||
|
||||
template <class C> class TMultiChoice
|
||||
|
||||
@@ -970,15 +970,6 @@ dynent *CBotManager::CreateBot(const char *team, const char *skill, const char *
|
||||
|
||||
m->pBot->Spawn();
|
||||
|
||||
// edit: driAn
|
||||
loopi(3)
|
||||
{
|
||||
m->mdl[i] = i;
|
||||
m->animstate[i].frm = 0;
|
||||
m->animstate[i].anim = 0;
|
||||
m->animstate[i].lastTime = 0;
|
||||
};
|
||||
|
||||
bots.add(m);
|
||||
|
||||
return m;
|
||||
|
||||
Reference in New Issue
Block a user