Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
fpsent Struct Reference

#include <fpsent.hpp>

Inheritance diagram for fpsent:
dynent fpsstate physent

Public Member Functions

 fpsent ()
 
 ~fpsent ()
 
void hitpush (int damage, const vec &dir, fpsent *actor, int gun)
 apply push event to object's velocity vector More...
 
void stopattacksound ()
 
void stopidlesound ()
 
void respawn ()
 respawn item More...
 
void stopmoving ()
 
void reset ()
 
void resetinterp ()
 
vec feetpos (float offset=0) const
 
vec headpos (float offset=0) const
 
vec abovehead ()
 
bool maymove () const
 
void baseammo (int gun, int k=2, int scale=1)
 set initial ammo More...
 
void addammo (int gun, int k=1, int scale=1)
 add ammo More...
 
bool hasmaxammo (int type)
 ammo limitation reached/exceeded? More...
 
bool canpickup (int type)
 check if I can pick up this item depending on the radius More...
 
void pickup (int type)
 pick up this item More...
 
void spawnstate (int gamemode)
 configure spawn settings (weapons, ammo, health...) depending on game mode More...
 
int dodamage (int damage)
 just subtract damage here, we can set death, etc. later in code calling this More...
 
int hasammo (int gun, int exclude=-1)
 is there ammo left for this gun More...
 

Public Attributes

int weight
 
int clientnum
 
int privilege
 
int lastupdate
 
int plag
 
int ping
 
int lifesequence
 
int respawned
 
int suicided
 
int lastpain
 
int lastaction
 
int lastattackgun
 
bool attacking
 
int attacksound
 
int attackchan
 
int idlesound
 
int idlechan
 
int lasttaunt
 
int lastpickup
 
int lastpickupmillis
 
int lastbase
 
int lastrepammo
 
int flagpickup
 
int tokens
 
vec lastcollect
 
int frags
 
int flags
 
int deaths
 
int teamkills
 
int totaldamage
 
int totalshots
 
editinfoedit
 
float deltayaw
 
float deltapitch
 
float deltaroll
 
float newyaw
 
float newpitch
 
float newroll
 
int smoothmillis
 
string name
 
string tag
 
string team
 
string info
 
int playermodel
 
int fov
 
ai::aiinfoai
 
int ownernum
 
int lastnode
 
vec muzzle
 
bool k_left
 
bool k_right
 
bool k_up
 
bool k_down
 
entitylight light
 
animinterpinfo animinterp [MAXANIMPARTS]
 
ragdolldataragdoll
 
occludequeryquery
 
int occluded
 
int lastrendered
 
vec o
 
vec vel
 
vec falling
 
vec deltapos
 
vec newpos
 
float yaw
 
float pitch
 
float roll
 
float maxspeed
 
int timeinair
 
float radius
 
float eyeheight
 
float aboveeye
 
float xradius
 
float yradius
 
float zmargin
 
vec floor
 
int inwater
 
bool jumping
 
char move
 
char strafe
 
uchar physstate
 
uchar state
 
uchar editstate
 
uchar type
 
uchar collidetype
 
bool blocked
 
int health
 
int maxhealth
 
int armour
 
int armourtype
 
int quadmillis
 
int gunselect
 
int gunwait
 
int ammo [NUMGUNS]
 
int aitype
 
int skill
 
int backupweapon
 
int bombradius
 
int bombdelay
 

Constructor & Destructor Documentation

fpsent::fpsent ( )
inline

References info, name, respawn(), tag, and team.

fpsent::~fpsent ( )
inline

Member Function Documentation

vec physent::abovehead ( )
inlineinherited
void fpsstate::addammo ( int  gun,
int  k = 1,
int  scale = 1 
)
inlineinherited
void fpsstate::baseammo ( int  gun,
int  k = 2,
int  scale = 1 
)
inlineinherited

set initial ammo

References itemstat::add, fpsstate::ammo, GUN_SG, and itemstats.

Referenced by fpsstate::spawnstate().

bool fpsstate::canpickup ( int  type)
inlineinherited
int fpsstate::dodamage ( int  damage)
inlineinherited

just subtract damage here, we can set death, etc. later in code calling this

References fpsstate::armour, fpsstate::armourtype, and fpsstate::health.

Referenced by game::damaged(), and server::dodamage().

vec physent::feetpos ( float  offset = 0) const
inlineinherited
int fpsstate::hasammo ( int  gun,
int  exclude = -1 
)
inlineinherited

is there ammo left for this gun

Referenced by game::ctfclientmode::aifind(), ai::hasgoodammo(), and ai::request().

bool fpsstate::hasmaxammo ( int  type)
inlineinherited
vec physent::headpos ( float  offset = 0) const
inlineinherited
void fpsent::hitpush ( int  damage,
const vec dir,
fpsent actor,
int  gun 
)
inline

apply push event to object's velocity vector

References vec::add(), EXP_SELFPUSH, f(), guns, vec::mul(), physent::vel, and weight.

Referenced by game::hit(), and game::parsemessages().

bool physent::maymove ( ) const
inlineinherited
void fpsstate::pickup ( int  type)
inlineinherited
void dynent::reset ( )
inlineinherited
void physent::resetinterp ( )
inlineinherited
void fpsent::respawn ( )
inline
void fpsstate::spawnstate ( int  gamemode)
inlineinherited
void fpsent::stopattacksound ( )
inline
void fpsent::stopidlesound ( )
inline
See Also
stopsound

References idlechan, idlesound, and inexor::sound::stopsound().

Referenced by game::checkidlesound(), and game::shoteffects().

void dynent::stopmoving ( )
inlineinherited

Member Data Documentation

float physent::aboveeye
inherited
ai::aiinfo* fpsent::ai
int fpsstate::aitype
inherited
int fpsstate::ammo[NUMGUNS]
inherited
animinterpinfo dynent::animinterp[MAXANIMPARTS]
inherited
int fpsstate::armour
inherited
int fpsstate::armourtype
inherited
int fpsent::attackchan
bool fpsent::attacking
int fpsent::attacksound
int fpsstate::backupweapon
inherited
bool physent::blocked
inherited
int fpsstate::bombdelay
inherited
int fpsstate::bombradius
inherited
int fpsent::clientnum
uchar physent::collidetype
inherited
int fpsent::deaths
float fpsent::deltapitch
vec physent::deltapos
inherited
float fpsent::deltaroll
float fpsent::deltayaw
editinfo* fpsent::edit
uchar physent::editstate
inherited
float physent::eyeheight
inherited
vec physent::falling
inherited
int fpsent::flagpickup
int fpsent::flags
vec physent::floor
inherited
int fpsent::fov
int fpsent::frags
int fpsstate::gunselect
inherited
int fpsstate::gunwait
inherited
int fpsstate::health
inherited
int fpsent::idlechan
int fpsent::idlesound
string fpsent::info

Referenced by fpsent(), and game::rendergame().

int physent::inwater
inherited
bool physent::jumping
inherited
bool dynent::k_down
inherited

Referenced by dynent::stopmoving().

bool dynent::k_left
inherited

Referenced by dynent::stopmoving().

bool dynent::k_right
inherited

Referenced by dynent::stopmoving().

bool dynent::k_up
inherited

Referenced by dynent::stopmoving().

int fpsent::lastaction
int fpsent::lastattackgun
int fpsent::lastbase
vec fpsent::lastcollect
int fpsent::lastnode
int fpsent::lastpain
int fpsent::lastpickup

Referenced by respawn(), and entities::trypickup().

int fpsent::lastpickupmillis

Referenced by respawn(), and entities::trypickup().

int dynent::lastrendered
inherited

Referenced by animmodel::render().

int fpsent::lastrepammo
int fpsent::lasttaunt
int fpsent::lastupdate
int fpsent::lifesequence
entitylight dynent::light
inherited
int fpsstate::maxhealth
inherited
float physent::maxspeed
inherited
char physent::move
inherited
vec fpsent::muzzle
string fpsent::name
float fpsent::newpitch
vec physent::newpos
inherited
float fpsent::newroll
float fpsent::newyaw
vec physent::o
inherited

Referenced by physent::abovehead(), adddecal(), adddynlight(), game::adddynlights(), flarerenderer::addflare(), addvisibleva(), game::collectclientmode::aicheck(), game::ctfclientmode::aifind(), ai::assist(), ai::avoid(), avoidcollision(), game::avoidweapons(), mpr::EntOBB::back(), mpr::EntFuzzy::back(), mpr::EntOBB::bottom(), mpr::EntFuzzy::bottom(), mpr::EntCylinder::bottom(), bounce(), game::bounced(), calcavatarpos(), calcshadowmapbb(), calcwatersubdiv(), ai::canshoot(), mpr::Ent::center(), mpr::EntOBB::center(), mpr::EntCylinder::center(), game::checkattacksound(), checkdynentcache(), game::checkidlesound(), inexor::sound::checkmapsounds(), entities::checkquad(), game::clearmovables(), collide(), cubecollideplanes(), cubecollidesolid(), cullmodel(), damagecompass(), game::damaged(), game::damageeffect(), game::deathstate(), shadowmaptexture::dorender(), game::hideandseekclientmode::drawblip(), game::bombclientmode::drawblip(), game::ctfclientmode::drawblip(), game::collectclientmode::drawblip(), game::captureclientmode::drawblips(), drawcubemap(), game::hideandseekclientmode::drawhud(), game::bombclientmode::drawhud(), game::collectclientmode::drawhud(), game::drawhudmodel(), game::drawminimap(), drawminimap(), drawreflection(), drawreflections(), drawskybox(), game::drawteammate(), game::collectclientmode::droptoken(), game::dynlighttrack(), editmoveplane(), ellipseboxcollide(), ellipsecollide(), gui::end(), endmodelbatches(), entautoview(), entinmap(), entpush(), game::movable::explode(), game::explode(), game::explodeeffects(), physent::feetpos(), fireballrenderer::finddepthfxranges(), finddynlights(), findfloor(), findplayerspawn(), findreflectedvas(), findvisiblemms(), mpr::EntOBB::front(), mpr::EntFuzzy::front(), fuzzycollideplanes(), fuzzycollidesolid(), g3d_addgui(), g3d_key(), g3d_mainmenu(), generategrass(), gengrassquads(), genpos< PT_TAPE >(), ai::getaimpos(), gl_drawframe(), game::gotoplayer(), game::gotosel(), game::gunselect(), physent::headpos(), game::hit(), ragdolldata::init(), game::ctfclientmode::interpflagpos(), interppos(), game::intersect(), ai::itemspawned(), ai::jumpto(), game::bombclientmode::killed(), mpr::EntOBB::left(), mpr::EntFuzzy::left(), ai::lockon(), lockpvs_(), flarerenderer::makelightflares(), menuinfrontofplayer(), mmcollide(), move(), movecamera(), moveplatform(), moveplayer(), moveragdoll(), game::msgsound(), nearestent(), game::newbouncer(), newentity(), flarerenderer::newflare(), overlapsdynent(), game::parsemessages(), game::parsepositions(), particle_text(), particle_textcopy(), game::particletrack(), game::physicstrigger(), game::ctfclientmode::pickholdspawn(), game::bombclientmode::pickspawn(), entities::pickupeffects(), platformcollide(), inexor::sound::playsound(), plcollide(), game::pointatplayer(), flag::pos(), game::predictplayer(), game::projdist(), pushsel(), queryreflection(), game::radialbombeffect(), recomputecamera(), regularshape(), ai::avoidset::remap(), game::ctfclientmode::removeplayer(), animmodel::part::render(), ai::render(), game::renderbouncers(), rendercullmodelquery(), rendereditcursor(), renderentselection(), rendergeom(), renderlightning(), rendermapmodels(), rendermaterials(), rendermodel(), fireballrenderer::renderpart(), game::renderplayer(), game::renderplayerpreview(), game::bombclientmode::renderplayersposindicator(), game::captureclientmode::rendertether(), renderwater(), physent::resetinterp(), mpr::EntOBB::right(), mpr::EntFuzzy::right(), game::selectcrosshair(), game::sendposition(), setcammatrix(), game::setupcamera(), setupgeom(), game::shoot(), game::shoteffects(), texturegui::show(), sortmaterials(), splash(), game::stackmovable(), gui::start(), modelpreview::start(), mpr::EntOBB::supportpoint(), mpr::EntCylinder::supportpoint(), mpr::EntCapsule::supportpoint(), mpr::EntEllipsoid::supportpoint(), game::collectclientmode::taketoken(), entities::teleport(), testpvs(), toggleedit(), mpr::EntOBB::top(), mpr::EntFuzzy::top(), trystepdown(), trystepup(), game::updatebouncers(), inexor::sound::updatechannel(), updatedynentcache(), game::updatemovables(), inexor::sound::updatemumble(), updateparticles(), updatephysstate(), game::updatepos(), game::updateprojectiles(), updateskystats(), and game::weaponcollide().

int dynent::occluded
inherited

Referenced by rendermodel().

int fpsent::ownernum

Referenced by ai::init(), and game::renderscoreboard().

uchar physent::physstate
inherited
int fpsent::ping
float physent::pitch
inherited
int fpsent::plag

Referenced by ai::init(), and game::updatepos().

int fpsent::playermodel
int fpsent::privilege
int fpsstate::quadmillis
inherited
occludequery* dynent::query
inherited
float physent::radius
inherited
ragdolldata* dynent::ragdoll
inherited
int fpsent::respawned
float physent::roll
inherited
int fpsstate::skill
inherited
int fpsent::smoothmillis
uchar physent::state
inherited

Referenced by aiman::addai(), game::captureclientmode::aidefend(), game::ctfclientmode::aidefend(), game::captureclientmode::aifind(), game::ctfclientmode::aifind(), ai::avoid(), game::canjump(), ai::canmove(), game::checkattacksound(), checkdynentcache(), game::checkidlesound(), game::captureclientmode::checkitems(), game::collectclientmode::checkitems(), game::ctfclientmode::checkitems(), entities::checkitems(), ai::checkothers(), entities::checktriggers(), game::collidecamera(), game::movable::damaged(), game::damaged(), game::deathstate(), game::detachcamera(), ai::dodefend(), ai::dointerest(), ai::dopursue(), game::hideandseekclientmode::drawhud(), game::bombclientmode::drawhud(), game::ctfclientmode::drawhud(), game::collectclientmode::drawhud(), game::captureclientmode::drawhud(), game::drawhudgun(), game::drawhudicons(), game::drawhudmodel(), game::drawteammates(), game::edittoggled(), execbind(), game::movable::explode(), game::follow(), game::followingplayer(), game::bombclientmode::gameconnect(), game::gamedisconnect(), game::gameplayhud(), game::getbestplayers(), game::getbestteams(), game::getclienticon(), game::gotoplayer(), game::gotosel(), game::groupplayers(), game::intersectclosest(), game::isobstaclealive(), game::isspectator(), game::bombclientmode::killed(), game::killed(), game::lighteffects(), ai::logic(), game::movable::movable(), moveplayer(), ai::navigate(), game::nextfollow(), game::nextweapon(), game::otherplayers(), game::parsemessages(), game::parsepositions(), game::parsestate(), game::playersort(), plcollide(), game::projdamage(), game::radialeffect(), game::collectclientmode::rendergame(), game::rendergame(), game::rendermovables(), game::renderplayer(), game::bombclientmode::renderplayersposindicator(), game::renderscoreboard(), game::captureclientmode::rendertether(), game::respawn(), game::selectcrosshair(), game::sendmap(), game::sendmapinfo(), game::sendposition(), game::sendpositions(), game::setupcamera(), game::setweapon(), game::spawnplayer(), game::movable::suicide(), game::suicide(), game::swayhudgun(), ai::targetable(), game::taunt(), ai::think(), toggleedit(), game::triggerplatform(), game::updatemovables(), game::updatepos(), game::updateweapons(), and game::updateworld().

char physent::strafe
inherited
int fpsent::suicided
string fpsent::tag
string fpsent::team

Referenced by game::collectclientmode::aicheck(), game::ctfclientmode::aicheck(), game::captureclientmode::aidefend(), game::ctfclientmode::aidefend(), game::captureclientmode::aifind(), game::collectclientmode::aifind(), game::ctfclientmode::aifind(), game::ctfclientmode::aihomerun(), game::collectclientmode::aipursue(), game::ctfclientmode::aipursue(), ai::assist(), game::collectclientmode::baseeffect(), game::collectclientmode::baseexplosion(), game::captureclientmode::checkitems(), game::collectclientmode::checkitems(), ai::checkothers(), game::collectclientmode::deposittokens(), game::collectclientmode::drawbaseblip(), game::ctfclientmode::drawblip(), game::captureclientmode::drawblips(), game::bombclientmode::drawhud(), game::ctfclientmode::drawhud(), game::collectclientmode::drawhud(), game::drawhudmodel(), game::drawteammates(), game::collectclientmode::droptoken(), game::ctfclientmode::flageffect(), game::ctfclientmode::flagexplosion(), fpsent(), game::getbestteams(), game::getclienticon(), game::getclientteam(), game::groupplayers(), game::hit(), ai::init(), game::killed(), game::parsemessages(), game::captureclientmode::pickspawn(), game::collectclientmode::pickspawn(), game::ctfclientmode::pickspawn(), game::printteam(), game::captureclientmode::rendergame(), game::collectclientmode::rendergame(), game::ctfclientmode::rendergame(), game::rendergame(), game::renderplayer(), game::bombclientmode::renderplayersposindicator(), game::renderscoreboard(), game::captureclientmode::rendertether(), game::ctfclientmode::scoreflag(), game::selectcrosshair(), game::captureclientmode::setscore(), game::collectclientmode::stealtoken(), game::switchteam(), game::ctfclientmode::takeflag(), game::collectclientmode::taketoken(), ai::targetable(), game::teamcolor(), game::teamcolorname(), and game::captureclientmode::updatebase().

int fpsent::teamkills

Referenced by game::killed(), and game::parsestate().

int physent::timeinair
inherited
int fpsent::tokens
int fpsent::totaldamage
int fpsent::totalshots
uchar physent::type
inherited
vec physent::vel
inherited
int fpsent::weight

Referenced by hitpush().

float physent::xradius
inherited
float physent::yaw
inherited
float physent::yradius
inherited
float physent::zmargin
inherited

The documentation for this struct was generated from the following file: