This is easy. All you need to do is modify the EntSelectSpawnPoint() function in player.cpp to include your tank entity as a valid spawnpoint. The trick is adjusting the player position relative to the tank so that he doesn't spawn inside a solid. But that shouldn't be too hard to do. The easy way is to just spawn directly above the top of the tank and drop down on top of it.
EntSelectSpawnPoint() returns a pointer to a CBaseEntity. The coordinates of the returned entity are then copied to the player's coordinates. What you need to do is to have a dummy CBaseEntity whose coordinates are set to the tank's, plus whatever offset you add, and then have EntSelectSpawnPoint () return a pointer to the modified dummy entity.
An even better solution is to have regular info_player_spawn points which have target names assigned to match the names of the tanks. Then just modify the coordinates of these named spawn points to match the named tank before returning from the function.
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.7.3 - Release Date: 1/24/2005
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

