dm mod/ spawn points/fire/ client cent list on cgame


(jamez) #1

i heard abuot the dm mod, but i recieved no info or anything, i think its dead
so i decided i would start a deathmatch mod.

does anybody know where i can change how people spawn (spawn at info_deathmatch’s)
and i want to change the scoreboard but that can wait

if anybody is interested in mapping, i would greatly appreciate it.

and still… i cannot make the fire appear, i guess its got something to do with
CG_FireFlameChunks( centity_t *cent, vec3_t origin, vec3_t angles, float speedScale, qboolean firing )
only taking player ents for spawning the fire
is there any list/way i can get a player cent from the ps.clientNum?


(jamez) #2

also how would i add a new entity type (info_deathmatch) that radiant could use and the game would read?


(jamez) #3

ok i found a function that might help people out looking to implement dm
SelectCTFSpawnPoint ( team_t team, int teamstate, vec3_t origin, vec3_t angles, int spawnObjective ) in


	if( revived ) {
		spawnPoint = ent;
		VectorCopy( ent->r.currentOrigin, spawn_origin );
		spawn_origin[2] += 9;	// spawns seem to be sunk into ground?
		VectorCopy( ent->s.angles, spawn_angles );
	} else {
		if( client->sess.sessionTeam != TEAM_AXIS && client->sess.sessionTeam != TEAM_ALLIES ) {
			spawnPoint = SelectSpectatorSpawnPoint( spawn_origin, spawn_angles );
		} else {
				spawnPoint = SelectCTFSpawnPoint( client->sess.sessionTeam, client->pers.teamState.state, spawn_origin, spawn_angles, client->sess.spawnObjectiveIndex );
		}
	}