djcev.com

//

Git Repos / fte_dogmode / qc / info / rotate.qc

Last update to this file was on 2024-03-24 at 02:40.

Show rotate.qc

//==============================================================================
// info_rotate
//==============================================================================

//======================================================================
// Rotate QuickC program
// By Jim Dose' 10/17/96
// Copyright (c)1996 Hipnotic Interactive, Inc.
// All rights reserved.
// Distributed (unsupported) on 3.12.97
//======================================================================

//======================================================================
// forward declarations
//======================================================================

entity(entity src, vector org) spawn_info_rotate;
void(entity e) info_rotate_init;
void() info_rotate;

//------------------------------------------------------------------------------

/*QUAKED info_rotate (0 0.5 0) (-4 -4 -4) (4 4 4) X X X X X X X X NOT_ON_EASY NOT_ON_NORMAL NOT_ON_HARD_OR_NIGHTMARE NOT_IN_DEATHMATCH NOT_IN_COOP NOT_IN_SINGLEPLAYER X NOT_ON_HARD_ONLY NOT_ON_NIGHTMARE_ONLY
Used as the point of rotation for rotatable objects.
*/

//----------------------------------------------------------------------
// class info_rotate: base_mapentity
// {
//--------------------------------------------------------------
entity(entity src, vector org) spawn_info_rotate =
{
local entity e = spawn ();
e.owner = src;
e.origin = org;
info_rotate_init (e);
return e;
};

//--------------------------------------------------------------
void(entity e) info_rotate_init =
{
base_mapentity_init (e);
e.classname = "info_rotate";
e.classtype = CT_INFO_ROTATE;
// remove self after a little while, to make sure that
// entities that have targeted it have had a chance to spawn
e.think = sub_remove;
e.nextthink = time + 2;
};

//--------------------------------------------------------------
void() info_rotate =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;

info_rotate_init (self);
};
// };

Return to the top of this page or return to the overview of this repo.

Log rotate.qc

Date Commit Message Author + -
2024-03-24 2nd pass refactor, rework QC class structure cev +32 -8
2024-01-31 Class based monster refactor & start projectiles cev +1 -1
2024-01-09 Continue OO / Class-based refactor cev +37  

Return to the top of this page or return to the overview of this repo.