Example #1
0
void G_InitGentity( gentity_t *e ) {
	e->inuse = qtrue;
	e->classname = "noclass";
	e->s.number = e - g_entities;
	e->r.ownerNum = ENTITYNUM_NONE;
	e->headshotDamageScale = 1.0;   // RF, default value

	// RF, init scripting
	e->scriptStatus.scriptEventIndex = -1;

	// Notify omni-bot
	Bot_Queue_EntityCreated( e );
}
Example #2
0
void G_InitGentity(gentity_t *e)
{
	e->inuse      = qtrue;
	e->classname  = "noclass";
	e->s.number   = e - g_entities;
	e->r.ownerNum = ENTITYNUM_NONE;
	e->nextthink  = 0;
	e->free       = NULL;

	// init scripting
	e->scriptStatus.scriptEventIndex = -1;

	// mark the time
	e->spawnTime = level.time;

#ifdef FEATURE_OMNIBOT
	// Notify omni-bot
	Bot_Queue_EntityCreated(e);
#endif
}
Example #3
0
void G_InitGentity(gentity_t *e)
{
	e->inuse = qtrue;
	e->classname = "noclass";
	e->s.number = e - g_entities;
	e->r.ownerNum = ENTITYNUM_NONE;
	e->aiInactive = 0xffffffff;
	e->nextthink = 0;
	memset(e->goalPriority, 0, sizeof(e->goalPriority));
	e->free = NULL;

	// RF, init scripting
	e->scriptStatus.scriptEventIndex = -1;
	// inc the spawncount
	e->spawnCount++;
	// mark the time
	e->spawnTime = level.time;

	// Omni-bot BEGIN
	// Notify omni-bot
	Bot_Queue_EntityCreated(e);
	// Omni-bot END
}
Example #4
0
void G_InitGentity( gentity_t *e ) {
	e->inuse = qtrue;
	e->classname = "noclass";
	e->s.number = e - g_entities;
	e->r.ownerNum = ENTITYNUM_NONE;
	e->aiInactive = 0xffffffff;
	e->nextthink = 0;
	memset(e->goalPriority, 0, sizeof(e->goalPriority));
	e->free = NULL;

	// RF, init scripting
	e->scriptStatus.scriptEventIndex = -1;
	// inc the spawncount
	e->spawnCount++;
	// mark the time
	e->spawnTime = level.time;

#ifdef OMNIBOT_SUPPORT
	// sta acqu-sdk (issue 3): omnibot support
	Bot_Queue_EntityCreated(e);
	// end acqu-sdk (issue 3)
#endif

}