View Single Post
LeeStrong
AlliedModders Donor
Join Date: Nov 2015
Old 12-27-2019 , 21:51   Re: Enum Structs Available This Holiday Season
Reply With Quote #36

Quote:
Originally Posted by MAGNAT2645 View Post
Code:
enum struct MapZone
{
	int zoneId,  				// ID within the map
	int zoneType,  				// Types: Start(1), End(2), Stage(3), Checkpoint(4), Speed(5), TeleToStart(6), Validator(7), Checker(8), Stop(0)
	int zoneTypeId, 			// ID of the same type eg. Start-1, Start-2, Start-3...
	float PointA[3],
	float PointB[3],
	float CenterPoint[3],
	char zoneName[128],
	int zoneGroup,
	int Vis,
	int Team,
	float TeleportPosition[3],
	float TeleportAngles[3]
}

MapZone g_mapZones[MAXZONES];
Example, instead of g_mapZones[i][zoneType] use g_mapZones[i].zoneType
Brilliant! This looks easier than I anticipated, I'll give this a try tomorrow and report in.
Thank you so much.
LeeStrong is offline