Forum

Ultra-tough Question

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Ultra-tough Question

Postby Baker » Sat Apr 15, 2006 3:02 am

Objective:

I need to know *everything* about the spawnflags settings in maps.

Goal is to cause all entities that appear in single player to occur in deathmatch. I have been told this is impossible in QuakeC because spawnflags occur prior to QuakeC getting a chance to look at the entities.

Is this true? Can only an engine-side modification cause single player entities to appear in multiplayer (keys, doors, wind tunnels, the works).
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby FrikaC » Sat Apr 15, 2006 3:18 am

The majority of entity spawnings are handled in the QuakeC, all monsters, keys, func_dmonlys, etc. Search items and the various monster files for if(deathmatch) remove(self); lines or to that effect and comment them out or remove them.

The SPAWNFLAG_NOT_DEATHMATCH spawnflag (as well as the various skill level spawnflages) are indeed (inexplicably) handled in the engine, in pr_edict.c. To get at these entities, you'll need to comment out the block of code that prevents them from spawning, however it would be wise to keep the skill level flag handling just below that.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest