home *** CD-ROM | disk | FTP | other *** search
/ Superpower (Alt) / SUPERPOWER.iso / q / patch / mbq073 / iwbotsrc / defs.qc < prev    next >
Encoding:
Text File  |  1996-09-01  |  18.8 KB  |  713 lines

  1.  
  2. /*
  3. ==============================================================================
  4.  
  5.             SOURCE FOR GLOBALVARS_T C STRUCTURE
  6.  
  7. ==============================================================================
  8. */
  9.  
  10. //
  11. // system globals
  12. //
  13. entity        self;
  14. entity        other;
  15. entity        world;
  16. float        time;
  17. float        frametime;
  18.  
  19. float        force_retouch;        // force all entities to touch triggers
  20.                                 // next frame.  this is needed because
  21.                                 // non-moving things don't normally scan
  22.                                 // for triggers, and when a trigger is
  23.                                 // created (like a teleport trigger), it
  24.                                 // needs to catch everything.
  25.                                 // decremented each frame, so set to 2
  26.                                 // to guarantee everything is touched
  27. string        mapname;
  28.  
  29. float        deathmatch;
  30. float        coop;
  31. float        teamplay;
  32.  
  33. float        serverflags;        // propagated from level to level, used to
  34.                                 // keep track of completed episodes
  35.  
  36. float        total_secrets;
  37. float        total_monsters;
  38.  
  39. float        found_secrets;        // number of secrets found
  40. float        killed_monsters;    // number of monsters killed
  41.  
  42.  
  43. // spawnparms are used to encode information about clients across server
  44. // level changes
  45. float        parm1, parm2, parm3, parm4, parm5, parm6, parm7, parm8, parm9, parm10, parm11, parm12, parm13, parm14, parm15, parm16;
  46.  
  47. //
  48. // global variables set by built in functions
  49. //    
  50. vector        v_forward, v_up, v_right;    // set by makevectors()
  51.     
  52. // set by traceline / tracebox
  53. float        trace_allsolid;
  54. float        trace_startsolid;
  55. float        trace_fraction;
  56. vector        trace_endpos;
  57. vector        trace_plane_normal;
  58. float        trace_plane_dist;
  59. entity        trace_ent;
  60. float        trace_inopen;
  61. float        trace_inwater;
  62.  
  63. entity        msg_entity;                // destination of single entity writes
  64.  
  65. //
  66. // required prog functions
  67. //
  68. void()         main;                        // only for testing
  69.  
  70. void()        StartFrame;
  71.  
  72. void()         PlayerPreThink;
  73. void()         PlayerPostThink;
  74.  
  75. void()        ClientKill;
  76. void()        ClientConnect;
  77. void()         PutClientInServer;        // call after setting the parm1... parms
  78. void()        ClientDisconnect;
  79.  
  80. void()        SetNewParms;            // called when a client first connects to
  81.                                     // a server. sets parms so they can be
  82.                                     // saved off for restarts
  83.  
  84. void()        SetChangeParms;            // call to set parms for self so they can
  85.                                     // be saved for a level transition
  86.  
  87.  
  88. //================================================
  89. void        end_sys_globals;        // flag for structure dumping
  90. //================================================
  91.  
  92. /*
  93. ==============================================================================
  94.  
  95.             SOURCE FOR ENTVARS_T C STRUCTURE
  96.  
  97. ==============================================================================
  98. */
  99.  
  100. //
  101. // system fields (*** = do not set in prog code, maintained by C code)
  102. //
  103. .float        modelindex;        // *** model index in the precached list
  104. .vector        absmin, absmax;    // *** origin + mins / maxs
  105.  
  106. .float        ltime;            // local time for entity
  107. .float        movetype;
  108. .float        solid;
  109.  
  110. .vector        origin;            // ***
  111. .vector        oldorigin;        // ***
  112. .vector        velocity;
  113. .vector        angles;
  114. .vector        avelocity;
  115.  
  116. .vector        punchangle;        // temp angle adjust from damage or recoil
  117.  
  118. .string        classname;        // spawn function
  119. .string        model;
  120. .float        frame;
  121. .float        skin;
  122. .float        effects;
  123.  
  124. .vector        mins, maxs;        // bounding box extents reletive to origin
  125. .vector        size;            // maxs - mins
  126.  
  127. .void()        touch;
  128. .void()        use;
  129. .void()        think;
  130. .void()        blocked;        // for doors or plats, called when can't push other
  131.  
  132. .float        nextthink;
  133. .entity        groundentity;
  134.  
  135. // stats
  136. .float        health;
  137. .float        frags;
  138. .float        weapon;            // one of the IT_SHOTGUN, etc flags
  139. .string        weaponmodel;
  140. .float        weaponframe;
  141. .float        currentammo;
  142. .float        ammo_shells, ammo_nails, ammo_rockets, ammo_cells;
  143.  
  144. .float        items;            // bit flags
  145.  
  146. .float        takedamage;
  147. .entity        chain;
  148. .float        deadflag;
  149.  
  150. .vector        view_ofs;            // add to origin to get eye point
  151.  
  152.  
  153. .float        button0;        // fire
  154. .float        button1;        // use
  155. .float        button2;        // jump
  156.  
  157. .float        impulse;        // weapon changes
  158.  
  159. .float        fixangle;
  160. .vector        v_angle;        // view / targeting angle for players
  161. .float        idealpitch;        // calculated pitch angle for lookup up slopes
  162.  
  163.  
  164. .string        netname;
  165.  
  166. .entity     enemy;
  167.  
  168. .float        flags;
  169.  
  170. .float        colormap;
  171. .float        team;
  172.  
  173. .float        max_health;        // players maximum health is stored here
  174.  
  175. .float        teleport_time;    // don't back up
  176.  
  177. .float        armortype;        // save this fraction of incoming damage
  178. .float        armorvalue;
  179.  
  180. .float        waterlevel;        // 0 = not in, 1 = feet, 2 = wast, 3 = eyes
  181. .float        watertype;        // a contents value
  182.  
  183. .float        ideal_yaw;
  184. .float        yaw_speed;
  185.  
  186. .entity        aiment;
  187.  
  188. .entity     goalentity;        // a movetarget or an enemy
  189.  
  190. .float        spawnflags;
  191.  
  192. .string        target;
  193. .string        targetname;
  194.  
  195. // damage is accumulated through a frame. and sent as one single
  196. // message, so the super shotgun doesn't generate huge messages
  197. .float        dmg_take;
  198. .float        dmg_save;
  199. .entity        dmg_inflictor;
  200.  
  201. .entity        owner;        // who launched a missile
  202. .vector        movedir;    // mostly for doors, but also used for waterjump
  203.  
  204. .string        message;        // trigger messages
  205.  
  206. .float        sounds;        // either a cd track number or sound number
  207.  
  208. .string        noise, noise1, noise2, noise3;    // contains names of wavs to play
  209.  
  210. //================================================
  211. void        end_sys_fields;            // flag for structure dumping
  212. //================================================
  213.  
  214.  
  215. // TM Bot - begin new entity fields
  216. .entity        bot;                // pointer to the bot
  217. .float        bot_flag;            // existence of bot (TRUE or FALSE)
  218. .float        bot_auto;            // auto mode of bot (TRUE or FALSE)
  219. .float        move_flag;            // movement of bot (STAND, WALK, or RUN)
  220. .float        auto_fire;            // status of bot's auto fire (TRUE or FALSE)
  221. .entity         rcktdtct;                       // detecting rockets(FLY_MISSILE's)
  222. .entity         attackr;                        // remembering who killed bot
  223. .entity         bot_enemy_entity;               // remembering where enemy is
  224. .entity         bot_controller;     // the thinking half of the bot
  225. .float          dodge;                          // to prevent dodgeing while dodgeing
  226. .void()         th_dodge;                       // dodge action
  227. .entity         controller;                     // who the thinker is
  228. .void()         th_stuff;                       // for searching items
  229. .entity         stuff;                          // what item to get 
  230. .void()         th_qatk;                        // quick attack
  231. // TM Bot - end new entity fields
  232.  
  233. /*
  234. ==============================================================================
  235.  
  236.                 VARS NOT REFERENCED BY C CODE
  237.  
  238. ==============================================================================
  239. */
  240.  
  241.  
  242. //
  243. // constants
  244. //
  245.  
  246. float    FALSE                    = 0;
  247. float     TRUE                    = 1;
  248.  
  249. // edict.flags
  250. float    FL_FLY                    = 1;
  251. float    FL_SWIM                    = 2;
  252. float    FL_CLIENT                = 8;    // set for all client edicts
  253. float    FL_INWATER                = 16;    // for enter / leave water splash
  254. float    FL_MONSTER                = 32;
  255. float    FL_GODMODE                = 64;    // player cheat
  256. float    FL_NOTARGET                = 128;    // player cheat
  257. float    FL_ITEM                    = 256;    // extra wide size for bonus items
  258. float    FL_ONGROUND                = 512;    // standing on something
  259. float    FL_PARTIALGROUND        = 1024;    // not all corners are valid
  260. float    FL_WATERJUMP            = 2048;    // player jumping out of water
  261. float    FL_JUMPRELEASED            = 4096;    // for jump debouncing
  262.  
  263. // edict.movetype values
  264. float    MOVETYPE_NONE            = 0;    // never moves
  265. //float    MOVETYPE_ANGLENOCLIP    = 1;
  266. //float    MOVETYPE_ANGLECLIP        = 2;
  267. float    MOVETYPE_WALK            = 3;    // players only
  268. float    MOVETYPE_STEP            = 4;    // discrete, not real time unless fall
  269. float    MOVETYPE_FLY            = 5;
  270. float    MOVETYPE_TOSS            = 6;    // gravity
  271. float    MOVETYPE_PUSH            = 7;    // no clip to world, push and crush
  272. float    MOVETYPE_NOCLIP            = 8;
  273. float    MOVETYPE_FLYMISSILE        = 9;    // fly with extra size against monsters
  274. float    MOVETYPE_BOUNCE            = 10;
  275. float    MOVETYPE_BOUNCEMISSILE    = 11;    // bounce with extra size
  276.  
  277. // edict.solid values
  278. float    SOLID_NOT                = 0;    // no interaction with other objects
  279. float    SOLID_TRIGGER            = 1;    // touch on edge, but not blocking
  280. float    SOLID_BBOX                = 2;    // touch on edge, block
  281. float    SOLID_SLIDEBOX            = 3;    // touch on edge, but not an onground
  282. float    SOLID_BSP                = 4;    // bsp clip, touch on edge, block
  283.  
  284. // range values
  285. float    RANGE_MELEE                = 0;
  286. float    RANGE_NEAR                = 1;
  287. float    RANGE_MID                = 2;
  288. float    RANGE_FAR                = 3;
  289.  
  290. // deadflag values
  291.  
  292. float    DEAD_NO                    = 0;
  293. float    DEAD_DYING                = 1;
  294. float    DEAD_DEAD                = 2;
  295. float    DEAD_RESPAWNABLE        = 3;
  296.  
  297. // takedamage values
  298.  
  299. float    DAMAGE_NO                = 0;
  300. float    DAMAGE_YES                = 1;
  301. float    DAMAGE_AIM                = 2;
  302.  
  303. // items
  304. float    IT_AXE                    = 4096;
  305. float    IT_SHOTGUN                = 1;
  306. float    IT_SUPER_SHOTGUN        = 2;
  307. float    IT_NAILGUN                = 4;
  308. float    IT_SUPER_NAILGUN        = 8;
  309. float    IT_GRENADE_LAUNCHER        = 16;
  310. float    IT_ROCKET_LAUNCHER        = 32;
  311. float    IT_LIGHTNING            = 64;
  312. float    IT_EXTRA_WEAPON            = 128;
  313.  
  314. float    IT_SHELLS                = 256;
  315. float    IT_NAILS                = 512;
  316. float    IT_ROCKETS                = 1024;
  317. float    IT_CELLS                = 2048;
  318.  
  319. float    IT_ARMOR1                = 8192;
  320. float    IT_ARMOR2                = 16384;
  321. float    IT_ARMOR3                = 32768;
  322. float    IT_SUPERHEALTH            = 65536;
  323.  
  324. float    IT_KEY1                    = 131072;
  325. float    IT_KEY2                    = 262144;
  326.  
  327. float    IT_INVISIBILITY            = 524288;
  328. float    IT_INVULNERABILITY        = 1048576;
  329. float    IT_SUIT                    = 2097152;
  330. float    IT_QUAD                    = 4194304;
  331.  
  332. // point content values
  333.  
  334. float    CONTENT_EMPTY            = -1;
  335. float    CONTENT_SOLID            = -2;
  336. float    CONTENT_WATER            = -3;
  337. float    CONTENT_SLIME            = -4;
  338. float    CONTENT_LAVA            = -5;
  339. float    CONTENT_SKY                = -6;
  340.  
  341. float    STATE_TOP        = 0;
  342. float    STATE_BOTTOM    = 1;
  343. float    STATE_UP        = 2;
  344. float    STATE_DOWN        = 3;
  345.  
  346. vector    VEC_ORIGIN = '0 0 0';
  347. vector    VEC_HULL_MIN = '-16 -16 -24';
  348. vector    VEC_HULL_MAX = '16 16 32';
  349.  
  350. vector    VEC_HULL2_MIN = '-32 -32 -24';
  351. vector    VEC_HULL2_MAX = '32 32 64';
  352.  
  353. // protocol bytes
  354. float    SVC_TEMPENTITY        = 23;
  355. float    SVC_KILLEDMONSTER    = 27;
  356. float    SVC_FOUNDSECRET        = 28;
  357. float    SVC_INTERMISSION    = 30;
  358. float    SVC_FINALE            = 31;
  359. float    SVC_CDTRACK            = 32;
  360. float    SVC_SELLSCREEN        = 33;
  361.  
  362.  
  363. float    TE_SPIKE        = 0;
  364. float    TE_SUPERSPIKE    = 1;
  365. float    TE_GUNSHOT        = 2;
  366. float    TE_EXPLOSION    = 3;
  367. float    TE_TAREXPLOSION    = 4;
  368. float    TE_LIGHTNING1    = 5;
  369. float    TE_LIGHTNING2    = 6;
  370. float    TE_WIZSPIKE        = 7;
  371. float    TE_KNIGHTSPIKE    = 8;
  372. float    TE_LIGHTNING3    = 9;
  373. float    TE_LAVASPLASH    = 10;
  374. float    TE_TELEPORT        = 11;
  375.  
  376. // sound channels
  377. // channel 0 never willingly overrides
  378. // other channels (1-7) allways override a playing sound on that channel
  379. float    CHAN_AUTO        = 0;
  380. float    CHAN_WEAPON        = 1;
  381. float    CHAN_VOICE        = 2;
  382. float    CHAN_ITEM        = 3;
  383. float    CHAN_BODY        = 4;
  384.  
  385. float    ATTN_NONE        = 0;
  386. float    ATTN_NORM        = 1;
  387. float    ATTN_IDLE        = 2;
  388. float    ATTN_STATIC        = 3;
  389.  
  390. // update types
  391.  
  392. float    UPDATE_GENERAL    = 0;
  393. float    UPDATE_STATIC    = 1;
  394. float    UPDATE_BINARY    = 2;
  395. float    UPDATE_TEMP        = 3;
  396.  
  397. // entity effects
  398.  
  399. float    EF_BRIGHTFIELD    = 1;
  400. float    EF_MUZZLEFLASH     = 2;
  401. float    EF_BRIGHTLIGHT     = 4;
  402. float    EF_DIMLIGHT     = 8;
  403.  
  404.  
  405. // messages
  406. float    MSG_BROADCAST    = 0;        // unreliable to all
  407. float    MSG_ONE            = 1;        // reliable to one (msg_entity)
  408. float    MSG_ALL            = 2;        // reliable to all
  409. float    MSG_INIT        = 3;        // write to the init string
  410.  
  411. //================================================
  412.  
  413. //
  414. // globals
  415. //
  416. float    movedist;
  417. float    gameover;        // set when a rule exits
  418.  
  419. string    string_null;    // null string, nothing should be held here
  420. float    empty_float;
  421.  
  422. entity    newmis;            // launch_spike sets this after spawning it
  423.  
  424. entity    activator;        // the entity that activated a trigger or brush
  425.  
  426. entity    damage_attacker;    // set by T_Damage
  427. float    framecount;
  428.  
  429. float        skill;
  430.  
  431. //================================================
  432.  
  433. //
  434. // world fields (FIXME: make globals)
  435. //
  436. .string        wad;
  437. .string     map;
  438. .float        worldtype;    // 0=medieval 1=metal 2=base
  439.  
  440. //================================================
  441.  
  442. .string        killtarget;
  443.  
  444. //
  445. // quakeed fields
  446. //
  447. .float        light_lev;        // not used by game, but parsed by light util
  448. .float        style;
  449.  
  450.  
  451. //
  452. // monster ai
  453. //
  454. .void()        th_stand;
  455. .void()        th_walk;
  456. .void()        th_run;
  457. .void()        th_missile;
  458. .void()        th_melee;
  459. .void(entity attacker, float damage)        th_pain;
  460. .void()        th_die;
  461.  
  462. .entity        oldenemy;        // mad at this player before taking damage
  463.  
  464. .float        speed;
  465.  
  466. .float    lefty;
  467.  
  468. .float    search_time;
  469. .float    attack_state;
  470.  
  471. float    AS_STRAIGHT        = 1;
  472. float    AS_SLIDING        = 2;
  473. float    AS_MELEE        = 3;
  474. float    AS_MISSILE        = 4;
  475.  
  476. //
  477. // player only fields
  478. //
  479. .float        walkframe;
  480.  
  481. .float         attack_finished;
  482. .float        pain_finished;
  483.  
  484. .float        invincible_finished;
  485. .float        invisible_finished;
  486. .float        super_damage_finished;
  487. .float        radsuit_finished;
  488.  
  489. .float        invincible_time, invincible_sound;
  490. .float        invisible_time, invisible_sound;
  491. .float        super_time, super_sound;
  492. .float        rad_time;
  493. .float        fly_sound;
  494.  
  495. .float        axhitme;
  496.  
  497. .float        show_hostile;    // set to time+0.2 whenever a client fires a
  498.                             // weapon or takes damage.  Used to alert
  499.                             // monsters that otherwise would let the player go
  500. .float        jump_flag;        // player jump flag
  501. .float        swim_flag;        // player swimming sound flag
  502. .float        air_finished;    // when time > air_finished, start drowning
  503. .float        bubble_count;    // keeps track of the number of bubbles
  504. .string        deathtype;        // keeps track of how the player died
  505.  
  506. //
  507. // object stuff
  508. //
  509. .string        mdl;
  510. .vector        mangle;            // angle at start
  511.  
  512. .vector        oldorigin;        // only used by secret door
  513.  
  514. .float        t_length, t_width;
  515.  
  516.  
  517. //
  518. // doors, etc
  519. //
  520. .vector        dest, dest1, dest2;
  521. .float        wait;            // time from firing to restarting
  522. .float        delay;            // time from activation to firing
  523. .entity        trigger_field;    // door's trigger entity
  524. .string        noise4;
  525.  
  526. //
  527. // monsters
  528. //
  529. .float         pausetime;
  530. .entity     movetarget;
  531.  
  532.  
  533. //
  534. // doors
  535. //
  536. .float        aflag;
  537. .float        dmg;            // damage done by door when hit
  538.     
  539. //
  540. // misc
  541. //
  542. .float        cnt;             // misc flag
  543.     
  544. //
  545. // subs
  546. //
  547. .void()        think1;
  548. .vector        finaldest, finalangle;
  549.  
  550. //
  551. // triggers
  552. //
  553. .float        count;            // for counting triggers
  554.  
  555.  
  556. //
  557. // plats / doors / buttons
  558. //
  559. .float        lip;
  560. .float        state;
  561. .vector        pos1, pos2;        // top and bottom positions
  562. .float        height;
  563.  
  564. //
  565. // sounds
  566. //
  567. .float        waitmin, waitmax;
  568. .float        distance;
  569. .float        volume;
  570.  
  571.  
  572.  
  573.  
  574. //===========================================================================
  575.     
  576.  
  577. //
  578. // builtin functions
  579. //
  580.  
  581. void(vector ang)    makevectors        = #1;        // sets v_forward, etc globals
  582. void(entity e, vector o) setorigin    = #2;
  583. void(entity e, string m) setmodel    = #3;        // set movetype and solid first
  584. void(entity e, vector min, vector max) setsize = #4;
  585. // #5 was removed
  586. void() break                        = #6;
  587. float() random                        = #7;        // returns 0 - 1
  588. void(entity e, float chan, string samp, float vol, float atten) sound = #8;
  589. vector(vector v) normalize            = #9;
  590. void(string e) error                = #10;
  591. void(string e) objerror                = #11;
  592. float(vector v) vlen                = #12;
  593. float(vector v) vectoyaw            = #13;
  594. entity() spawn                        = #14;
  595. void(entity e) remove                = #15;
  596.  
  597. // sets trace_* globals
  598. // nomonsters can be:
  599. // An entity will also be ignored for testing if forent == test,
  600. // forent->owner == test, or test->owner == forent
  601. // a forent of world is ignored
  602. void(vector v1, vector v2, float nomonsters, entity forent) traceline = #16;    
  603.  
  604. entity() checkclient                = #17;    // returns a client to look for
  605. entity(entity start, .string fld, string match) find = #18;
  606. string(string s) precache_sound        = #19;
  607. string(string s) precache_model        = #20;
  608. void(entity client, string s)stuffcmd = #21;
  609. entity(vector org, float rad) findradius = #22;
  610. void(string s) bprint                = #23;
  611. void(entity client, string s) sprint = #24;
  612. void(string s) dprint                = #25;
  613. string(float f) ftos                = #26;
  614. string(vector v) vtos                = #27;
  615. void() coredump                        = #28;        // prints all edicts
  616. void() traceon                        = #29;        // turns statment trace on
  617. void() traceoff                        = #30;
  618. void(entity e) eprint                = #31;        // prints an entire edict
  619. float(float yaw, float dist) walkmove    = #32;    // returns TRUE or FALSE
  620. // #33 was removed
  621. float(float yaw, float dist) droptofloor= #34;    // TRUE if landed on floor
  622. void(float style, string value) lightstyle = #35;
  623. float(float v) rint                    = #36;        // round to nearest int
  624. float(float v) floor                = #37;        // largest integer <= v
  625. float(float v) ceil                    = #38;        // smallest integer >= v
  626. // #39 was removed
  627. float(entity e) checkbottom            = #40;        // true if self is on ground
  628. float(vector v) pointcontents        = #41;        // returns a CONTENT_*
  629. // #42 was removed
  630. float(float f) fabs = #43;
  631. vector(entity e, float speed) aim = #44;        // returns the shooting vector
  632. float(string s) cvar = #45;                        // return cvar.value
  633. void(string s) localcmd = #46;                    // put string into local que
  634. entity(entity e) nextent = #47;                    // for looping through all ents
  635. void(vector o, vector d, float color, float count) particle = #48;// start a particle effect
  636. void() ChangeYaw = #49;                        // turn towards self.ideal_yaw
  637.                                             // at self.yaw_speed
  638. // #50 was removed
  639. vector(vector v) vectoangles            = #51;
  640.  
  641. //
  642. // direct client message generation
  643. //
  644. void(float to, float f) WriteByte        = #52;
  645. void(float to, float f) WriteChar        = #53;
  646. void(float to, float f) WriteShort        = #54;
  647. void(float to, float f) WriteLong        = #55;
  648. void(float to, float f) WriteCoord        = #56;
  649. void(float to, float f) WriteAngle        = #57;
  650. void(float to, string s) WriteString    = #58;
  651. void(float to, entity s) WriteEntity    = #59;
  652.  
  653. //
  654. // broadcast client message generation
  655. //
  656.  
  657. // void(float f) bWriteByte        = #59;
  658. // void(float f) bWriteChar        = #60;
  659. // void(float f) bWriteShort        = #61;
  660. // void(float f) bWriteLong        = #62;
  661. // void(float f) bWriteCoord        = #63;
  662. // void(float f) bWriteAngle        = #64;
  663. // void(string s) bWriteString    = #65;
  664. // void(entity e) bWriteEntity = #66;
  665.  
  666. void(float step) movetogoal                = #67;
  667.  
  668. string(string s) precache_file        = #68;    // no effect except for -copy
  669. void(entity e) makestatic        = #69;
  670. void(string s) changelevel = #70;
  671.  
  672. //#71 was removed
  673.  
  674. void(string var, string val) cvar_set = #72;    // sets cvar.value
  675.  
  676. void(entity client, string s) centerprint = #73;    // sprint, but in middle
  677.  
  678. void(vector pos, string samp, float vol, float atten) ambientsound = #74;
  679.  
  680. string(string s) precache_model2    = #75;        // registered version only
  681. string(string s) precache_sound2    = #76;        // registered version only
  682. string(string s) precache_file2        = #77;        // registered version only
  683.  
  684. void(entity e) setspawnparms        = #78;        // set parm1... to the
  685.                                                 // values at level start
  686.                                                 // for coop respawn
  687.  
  688. //============================================================================
  689.  
  690. //
  691. // subs.qc
  692. //
  693. void(vector tdest, float tspeed, void() func) SUB_CalcMove;
  694. void(entity ent, vector tdest, float tspeed, void() func) SUB_CalcMoveEnt;
  695. void(vector destangle, float tspeed, void() func) SUB_CalcAngleMove;
  696. void()  SUB_CalcMoveDone;
  697. void() SUB_CalcAngleMoveDone;
  698. void() SUB_Null;
  699. void() SUB_UseTargets;
  700. void() SUB_Remove;
  701.  
  702. //
  703. //    combat.qc
  704. //
  705. void(entity targ, entity inflictor, entity attacker, float damage) T_Damage;
  706.  
  707.  
  708. float (entity e, float healamount, float ignore) T_Heal; // health function
  709.  
  710. float(entity targ, entity inflictor) CanDamage;
  711.  
  712.  
  713.