mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
fix bot meta on initial spawn
This commit is contained in:
parent
13bc2b0a49
commit
e4b15dd1e8
@ -337,7 +337,8 @@ void CBot::Spawn( )
|
|||||||
// get the bot's name and save it in respawn array...
|
// get the bot's name and save it in respawn array...
|
||||||
strcpy(bot_respawn[respawn_index].name, STRING(pev->netname));
|
strcpy(bot_respawn[respawn_index].name, STRING(pev->netname));
|
||||||
|
|
||||||
bot_respawn[respawn_index].state = BOT_IDLE;
|
bot_respawn[respawn_index].is_used = TRUE;
|
||||||
|
bot_respawn[respawn_index].state = BOT_IS_RESPAWNING;
|
||||||
|
|
||||||
pev->ideal_yaw = pev->v_angle.y;
|
pev->ideal_yaw = pev->v_angle.y;
|
||||||
pev->yaw_speed = BOT_YAW_SPEED;
|
pev->yaw_speed = BOT_YAW_SPEED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user