/** * @brief info_2x2_start (1 1 0) (-32 -32 -24) (32 32 32) * Starting point for a 2x2 unit. */ static void SP_2x2_start (edict_t *ent) { /* no 2x2 unit in multiplayer */ if (sv_maxclients->integer > 1) { G_FreeEdict(ent); return; } /* set stats */ ent->STUN = 0; ent->HP = MAX_HP; if (!ent->team) ent->team = TEAM_PHALANX; /* these units are bigger */ VectorSet(ent->maxs, PLAYER_WIDTH * 2, PLAYER_WIDTH * 2, PLAYER_STAND); VectorSet(ent->mins, -(PLAYER_WIDTH * 2), -(PLAYER_WIDTH * 2), PLAYER_MIN); /* spawn singleplayer 2x2 unit */ G_Actor2x2Spawn(ent); }
/** * @brief info_2x2_start (1 1 0) (-32 -32 -24) (32 32 32) * Starting point for a 2x2 unit. */ static void SP_2x2_start (Edict* ent) { /* no 2x2 unit in multiplayer */ if (G_IsMultiPlayer()) { G_FreeEdict(ent); return; } /* set stats */ ent->STUN = 0; ent->HP = INITIAL_HP; if (!ent->team) ent->team = TEAM_PHALANX; /* these units are bigger */ VectorSet(ent->maxs, PLAYER_WIDTH * 2, PLAYER_WIDTH * 2, PLAYER_STAND); VectorSet(ent->mins, -(PLAYER_WIDTH * 2), -(PLAYER_WIDTH * 2), PLAYER_MIN); /* spawn singleplayer 2x2 unit */ G_Actor2x2Spawn(ent); }