Advertisement
techforce

newdefs

Oct 14th, 2011
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 21.03 KB | None | 0 0
  1.  
  2. .string bot_type;
  3. .void th_weight;
  4. .float(entity node, float len, entity item) th_cache;
  5. .void() th_update;
  6. .float istrigger;
  7. .float healtype;
  8. .float playerkills;
  9. .float playerdeaths;
  10. .float botkills;
  11. .float botdeaths;
  12. .float suicides;
  13. .vector lastseenpos;
  14. .float enemyrun;
  15. .float goody_time;
  16. .float strafetime;
  17. .float strafeonly;
  18. .void() strafethink;
  19. .float strafeyaw;
  20. .float strafedist;
  21. .entity movetarget2;
  22. .entity movetarget3;
  23. .entity movetarget4;
  24. .entity movetarget5;
  25. .entity movetarget6;
  26. .entity lastbot;
  27. .float lasttime;
  28. .float pather;
  29. .float pathtype;
  30. .float skil;
  31. .float rocketlen;
  32. .entity rocketcache;
  33. .float lightninglen;
  34. .entity lightningcache;
  35. .float armorlen;
  36. .entity armorcache;
  37. .float pendinglen;
  38. .entity pendingcache;
  39. .float naillen;
  40. .entity nailcache;
  41. .float grenadelen;
  42. .entity grenadecache;
  43. .float poweruplen;
  44. .entity powerupcache;
  45. .float enemylen;
  46. .entity enemycache;
  47. .float endpoint;
  48. .string teamname;
  49. float NORMALSCORE    = 1;
  50. float MYSCORE    = 2;
  51. float MUST_HAVE    = 100;
  52. float WANT    = 35;
  53. float KINDA_WANT    = 20;
  54. float DONT_WANT    = 0;
  55. float CANTURN    = 1;
  56. float NOTURN    = 2;
  57. float SEARCH_RADIUS    = 600;
  58. float LOOPTIME    = 20;
  59. float MAXPATHERS    = 16;
  60. float DROPPED    = 2;
  61. float CARRIED    = 1;
  62. float NEVERTARGET    = 3;
  63. float REGULARTARGET    = 0;
  64. float TELEPORT    = 4;
  65. float BOTS    = 240;
  66. float TEAMBOTS    = 3840;
  67. float RESTRICT    = 4096;
  68. float SUPERRESTRICT    = 8192;
  69. float TEAMFLAG    = 16384;
  70. float INITLEVEL    = 32768;
  71. float DEDICATED    = 4194304;
  72. float LOCAL_TIME    = 7;
  73. float STRAFE_DIR    = 16;
  74. float FAR_SEEK    = 32;
  75. float WATERUPDOWN    = 64;
  76. float NODROP    = 128;
  77. float RUNAWAY    = 256;
  78. float GETGOODY    = 512;
  79. float ONTRAIN    = 1024;
  80. float MULTIENEMY    = 2048;
  81. float VERBOSEBOT;
  82. float BOTSPEED;
  83. float NUMBOTS;
  84. float GRAVITY;
  85. float MAXJUMP;
  86. float INVGRENADELEVELDIST;
  87. float GRENADEMAXHEIGHT;
  88. float LEVELJUMPTIME;
  89. float NUMPATHS;
  90. float NUMGIBS;
  91. float NUMPATHERS;
  92. float SKINSMODE;
  93. float RECURSEDEPTH;
  94. vector REBOUNDSPOT;
  95. float REBOUND;
  96. float TELEFRAGFLAG;
  97. entity NOISEQUEUE;
  98. float HELPING;
  99. float NAMEBOTS;
  100. void (entity noisemaker, entity noiseobject) signalnoise;
  101. float (entity e) hearnoise;
  102. entity () noisetarget;
  103. .float  attack_state;
  104.  
  105. float (entity targ) Spotvisible;
  106. float (entity targ) Platvisible;
  107. float (vector spot) dropline;
  108. void () secret_touch;
  109.  
  110. float (entity e) doorweight =
  111. {
  112.     local float weight;
  113.  
  114.     weight = KINDA_WANT;
  115.     if (e.owner.targetname)
  116.     {
  117.         weight = DONT_WANT;
  118.     }
  119.     else
  120.     {
  121.         if ((e.touch == secret_touch))
  122.         {
  123.             weight = KINDA_WANT;
  124.         }
  125.         else
  126.         {
  127.             if ((e.state == STATE_TOP))
  128.             {
  129.                 weight = DONT_WANT;
  130.             }
  131.             else
  132.             {
  133.                 if ((e.state == STATE_UP))
  134.                 {
  135.                     weight = KINDA_WANT;
  136.                 }
  137.             }
  138.         }
  139.     }
  140.     if (!Spotvisible (e))
  141.     {
  142.         weight = DONT_WANT;
  143.     }
  144.     return (weight);
  145. };
  146.  
  147. float (entity e) buttonweight =
  148. {
  149.     local float weight;
  150.  
  151.     weight = DONT_WANT;
  152.     if ((e.state == STATE_BOTTOM))
  153.     {
  154.         if (Spotvisible (e))
  155.         {
  156.             weight = (KINDA_WANT + TRUE);
  157.         }
  158.     }
  159.     return (weight);
  160. };
  161.  
  162. float (entity e) platweight =
  163. {
  164.     local float weight;
  165.  
  166.     weight = KINDA_WANT;
  167.     if (!Platvisible (e))
  168.     {
  169.         if (!Spotvisible (e))
  170.         {
  171.             weight = DONT_WANT;
  172.         }
  173.     }
  174.     return (weight);
  175. };
  176.  
  177. float (entity e) trigpushweight =
  178. {
  179.     local float weight;
  180.     local vector spot;
  181.     local vector org;
  182.  
  183.     weight = DONT_WANT;
  184.     org = ((e.absmin + e.absmax) * 0.5);
  185.     org_z = (e.absmin_z + TRUE);
  186.     spot = org;
  187.     spot_z = self.origin_z;
  188.     traceline (self.origin, spot, TRUE, self);
  189.     if ((trace_fraction == TRUE))
  190.     {
  191.         traceline (spot, org, TRUE, self);
  192.         if ((trace_fraction == TRUE))
  193.         {
  194.             spot_z = dropline (org);
  195.             if ((self.absmin_z > spot_z))
  196.             {
  197.                 spot_z = self.absmin_z;
  198.             }
  199.             if ((org_z < (((self.maxs_z - self.mins_z) + spot_z) + MAXJUMP)))
  200.             {
  201.                 weight = KINDA_WANT;
  202.             }
  203.         }
  204.     }
  205.     return (weight);
  206. };
  207.  
  208. float (entity e) triggerweight =
  209. {
  210.     local float weight;
  211.     local float rnd;
  212.  
  213.     weight = (KINDA_WANT - FL_SWIM);
  214.     rnd = random ();
  215.     if ((rnd < 0.25))
  216.     {
  217.         weight = WANT;
  218.     }
  219.     if (!Spotvisible (e))
  220.     {
  221.         weight = DONT_WANT;
  222.     }
  223.     return (weight);
  224. };
  225.  
  226. float (entity e) backpackweight =
  227. {
  228.     local float lnd;
  229.     local float weight;
  230.  
  231.     weight = WANT;
  232.     lnd = pointcontents ((e.absmin + '0 0 1'));
  233.     if ((e.items & (IT_ROCKET_LAUNCHER + IT_LIGHTNING)))
  234.     {
  235.         weight = (MUST_HAVE - TRUE);
  236.     }
  237.     if (((lnd == CONTENT_LAVA) || (lnd == CONTENT_SLIME)))
  238.     {
  239.         weight = DONT_WANT;
  240.     }
  241.     return (weight);
  242. };
  243.  
  244. float (entity e) healthweight =
  245. {
  246.     local float weight;
  247.  
  248.     weight = WANT;
  249.     if ((self.health < 60))
  250.     {
  251.         weight = (MUST_HAVE - TRUE);
  252.     }
  253.     else
  254.     {
  255.         if ((e.healtype == FL_SWIM))
  256.         {
  257.             weight = MUST_HAVE;
  258.         }
  259.         else
  260.         {
  261.             if ((self.health > 99))
  262.             {
  263.                 weight = DONT_WANT;
  264.             }
  265.         }
  266.     }
  267.     return (weight);
  268. };
  269.  
  270. float (entity e) nailweight =
  271. {
  272.     local float weight;
  273.  
  274.     weight = (WANT - TRUE);
  275.     if ((self.ammo_nails > 199))
  276.     {
  277.         weight = DONT_WANT;
  278.     }
  279.     else
  280.     {
  281.         if ((self.ammo_nails > 120))
  282.         {
  283.             weight = (KINDA_WANT - FL_SWIM);
  284.         }
  285.     }
  286.     return (weight);
  287. };
  288.  
  289. float (entity e) shellweight =
  290. {
  291.     local float weight;
  292.  
  293.     weight = (WANT - TRUE);
  294.     if ((self.ammo_shells > 99))
  295.     {
  296.         weight = DONT_WANT;
  297.     }
  298.     else
  299.     {
  300.         if ((self.ammo_shells > 50))
  301.         {
  302.             weight = (KINDA_WANT - FL_SWIM);
  303.         }
  304.     }
  305.     return (weight);
  306. };
  307.  
  308. float (entity e) cellweight =
  309. {
  310.     local float weight;
  311.  
  312.     weight = WANT;
  313.     if ((self.ammo_cells > 99))
  314.     {
  315.         weight = DONT_WANT;
  316.     }
  317.     return (weight);
  318. };
  319.  
  320. float (entity e) rocketweight =
  321. {
  322.     local float weight;
  323.  
  324.     weight = WANT;
  325.     if ((self.ammo_rockets > 99))
  326.     {
  327.         weight = DONT_WANT;
  328.     }
  329.     return (weight);
  330. };
  331.  
  332. float (entity e) rlauncherweight =
  333. {
  334.     local float weight;
  335.  
  336.     weight = (WANT + FL_SWIM);
  337.     if (!(self.items & IT_ROCKET_LAUNCHER))
  338.     {
  339.         weight = MUST_HAVE;
  340.     }
  341.     return (weight);
  342. };
  343.  
  344. float (entity e) lightningweight =
  345. {
  346.     local float weight;
  347.  
  348.     weight = (WANT + FL_SWIM);
  349.     if (!(self.items & IT_LIGHTNING))
  350.     {
  351.         weight = MUST_HAVE;
  352.     }
  353.     return (weight);
  354. };
  355.  
  356. float (entity e) glauncherweight =
  357. {
  358.     local float weight;
  359.  
  360.     weight = (WANT + TRUE);
  361.     if (!(self.items & IT_GRENADE_LAUNCHER))
  362.     {
  363.         weight = (MUST_HAVE - TRUE);
  364.     }
  365.     return (weight);
  366. };
  367.  
  368. float (entity e) nailgunweight =
  369. {
  370.     return (WANT);
  371. };
  372.  
  373. float (entity e) supernailweight =
  374. {
  375.     local float weight;
  376.  
  377.     weight = (WANT + TRUE);
  378.     if (!(self.items & IT_SUPER_NAILGUN))
  379.     {
  380.         weight = (MUST_HAVE - TRUE);
  381.     }
  382.     return (weight);
  383. };
  384.  
  385. float (entity e) ssgweight =
  386. {
  387.     return (WANT);
  388. };
  389.  
  390. float (entity e) armorweight =
  391. {
  392.     local float weight;
  393.  
  394.     weight = (e.armorvalue - self.armorvalue);
  395.     return (weight);
  396. };
  397.  
  398. float (entity e) artifactweight =
  399. {
  400.     local float weight;
  401.  
  402.     weight = (MUST_HAVE + FL_SWIM);
  403.     if ((e.classname == "item_artifact_envirosuit"))
  404.     {
  405.         weight = WANT;
  406.     }
  407.     return (weight);
  408. };
  409.  
  410. float (entity node, float len, entity item) cacherocket =
  411. {
  412.     if ((node.rocketlen > FALSE))
  413.     {
  414.         if ((len >= node.rocketlen))
  415.         {
  416.             return (FALSE);
  417.         }
  418.     }
  419.     node.rocketlen = len;
  420.     node.rocketcache = item;
  421.     return (TRUE);
  422. };
  423.  
  424. float (entity node, float len, entity item) cachelightning =
  425. {
  426.     if ((node.lightninglen > FALSE))
  427.     {
  428.         if ((len >= node.lightninglen))
  429.         {
  430.             return (FALSE);
  431.         }
  432.     }
  433.     node.lightninglen = len;
  434.     node.lightningcache = item;
  435.     return (TRUE);
  436. };
  437.  
  438. float (entity node, float len, entity item) cachearmor =
  439. {
  440.     if ((node.armorlen > FALSE))
  441.     {
  442.         if ((len >= node.armorlen))
  443.         {
  444.             return (FALSE);
  445.         }
  446.     }
  447.     node.armorlen = len;
  448.     node.armorcache = item;
  449.     return (TRUE);
  450. };
  451.  
  452. float (entity node, float len, entity item) cachenail =
  453. {
  454.     if ((node.naillen > FALSE))
  455.     {
  456.         if ((len >= node.naillen))
  457.         {
  458.             return (FALSE);
  459.         }
  460.     }
  461.     node.naillen = len;
  462.     node.nailcache = item;
  463.     return (TRUE);
  464. };
  465.  
  466. float (entity node, float len, entity item) cachegrenade =
  467. {
  468.     if ((node.grenadelen > FALSE))
  469.     {
  470.         if ((len >= node.grenadelen))
  471.         {
  472.             return (FALSE);
  473.         }
  474.     }
  475.     node.grenadelen = len;
  476.     node.grenadecache = item;
  477.     return (TRUE);
  478. };
  479.  
  480. float (entity node, float len, entity item) cachepowerup =
  481. {
  482.     if ((node.poweruplen > FALSE))
  483.     {
  484.         if ((len >= node.poweruplen))
  485.         {
  486.             return (FALSE);
  487.         }
  488.     }
  489.     node.poweruplen = len;
  490.     node.powerupcache = item;
  491.     return (TRUE);
  492. };
  493.  
  494. float (entity node, float len, entity item) cacheenemy =
  495. {
  496.     if ((node.enemylen > FALSE))
  497.     {
  498.         if ((len >= node.enemylen))
  499.         {
  500.             return (FALSE);
  501.         }
  502.     }
  503.     node.enemylen = len;
  504.     node.enemycache = item;
  505.     return (TRUE);
  506. };
  507.  
  508. void () updaterocket =
  509. {
  510.     self.rocketcache = self.pendingcache;
  511.     self.rocketlen = self.pendinglen;
  512. };
  513.  
  514. void () updatelightning =
  515. {
  516.     self.lightningcache = self.pendingcache;
  517.     self.lightninglen = self.pendinglen;
  518. };
  519.  
  520. void () updatearmor =
  521. {
  522.     self.armorcache = self.pendingcache;
  523.     self.armorlen = self.pendinglen;
  524. };
  525.  
  526. void () updatepowerup =
  527. {
  528.     self.powerupcache = self.pendingcache;
  529.     self.poweruplen = self.pendinglen;
  530. };
  531.  
  532. void () updatenail =
  533. {
  534.     self.nailcache = self.pendingcache;
  535.     self.naillen = self.pendinglen;
  536. };
  537.  
  538. void () updategrenade =
  539. {
  540.     self.grenadecache = self.pendingcache;
  541.     self.grenadelen = self.pendinglen;
  542. };
  543.  
  544.  
  545.  
  546.  
  547.  
  548. .float items2;
  549. float IT2_SIGIL1 = 32;
  550. float IT2_SIGIL2 = 64;
  551. float IT2_SIGIL3 = 128;
  552. float IT2_SIGIL4 = 256;
  553. .float crouch, attemptcrouch;
  554. float sys_ticrate;
  555. .float altweap; // Alternate weapon
  556. .float gtimer; // Grenade timer
  557. .float stamina; // Sprint mod
  558. .float walkvalue;
  559. .float runvalue;
  560. .float sprint_finished;
  561. .float walktime;
  562. .float runtime;
  563. float (string mname) SpawnWeatherForMap;
  564. void (vector tdest, float tspeed, void() func) SUB_CalcMove;
  565. void (entity ent, vector tdest, float tspeed, void() func) SUB_CalcMoveEnt;
  566. void (vector destangle, float tspeed, void() func) SUB_CalcAngleMove;
  567. void () SUB_CalcMoveDone;
  568. void () SUB_CalcAngleMoveDone;
  569. void () SUB_Null;
  570. void () SUB_UseTargets;
  571. void () SUB_Remove;
  572. void (entity targ, entity inflictor, entity attacker, float damage) T_Damage;
  573. float (entity e, float healamount, float ignore) T_Heal;
  574. float (entity targ, entity inflictor) CanDamage;
  575. .float lastteam;
  576. .float flag_since;
  577. .float last_returned_flag;
  578. .float last_fragged_carrier;
  579. .float last_hurt_carrier;
  580. .float observer;
  581. .float do_observer;
  582. float ITEM_RUNE1_FLAG    = 1;
  583. float ITEM_RUNE2_FLAG    = 2;
  584. float ITEM_RUNE3_FLAG    = 4;
  585. float ITEM_RUNE4_FLAG    = 8;
  586. float ITEM_RUNE_MASK    = 15;
  587. float ITEM_ENEMY_FLAG    = 16;
  588. float TEAM_STUFF_COLOR    = 32;
  589. .float oldskin;
  590. .float path_1;
  591. .float path_2;
  592. .float crosshair;
  593. .float crosshairtype;
  594. .float motd_time;
  595. .float motd_count;
  596. .float suicide_count;
  597. .float killed;
  598. float bot_dump;
  599. .float imhooked;
  600. .float reserve;
  601. .float pattern;
  602. .float repeat;
  603. .string repeated;
  604. .float timing;
  605. .float nextjump;
  606. .float ideal_pitch;
  607. .float current_pitch;
  608. .float swing;
  609. .float attacked;
  610. .vector turn;
  611. .float previous_weapon;
  612. float gamestart;
  613. float red_stockpile;
  614. float blue_stockpile;
  615. .float voted;
  616. void (string gibname, float dm) Throw_Powerup;
  617. void () globe_think;
  618. void () torch_touch;
  619. void () fire_touch;
  620. void () NextLevel;
  621. void () UnHookPlayer;
  622. void (string st) BotSayTeam;
  623. void (float num_bubbles) DeathBubbles;
  624. void (float zdist) BotFireHookUpRandomly;
  625. void () set_suicide_frame;
  626. float FRIEND_BASE    = 0;
  627. float ENEMY_BASE    = 1;
  628. float PLAYER_NO_TARGET    = 1;
  629. float PLAYER_USING_CAMERA    = 2;
  630. float PLAYER_ALWAYS_ESCORT    = 4;
  631. float CAMPING_TIME    = 120;
  632. float ESCORT_TIME    = 120;
  633. float BOT_FIGHTING    = 1;
  634. float BOT_MOVING    = 2;
  635. float BOT_STANDING    = 3;
  636. float BOT_ATTACK    = 1;
  637. float BOT_DEFEND    = 2;
  638. float BOT_ROAM    = 3;
  639. float NUM_HOOKS;
  640. float WATERCOLOR;
  641. float waypoint_idle;
  642. float hook_use_enabled;
  643. float bots_have_normal_names;
  644. float smooth_move;
  645. float map_has_waypoints;
  646. float debug_markers_visible;
  647. float bot_chatter_off;
  648. float bot_chatter_rated_g;
  649. float next_bot_num;
  650. float temp1;
  651. float bot_debug;
  652. float next_bot_red;
  653. float next_bot_blue;
  654. float current_red_waypoint;
  655. float current_blue_waypoint;
  656. float current_waypoint;
  657. float spawning_waypoints;
  658. float spawning_general_waypoints;
  659. entity wp_first_red;
  660. entity wp_last_red;
  661. entity wp_first_blue;
  662. entity wp_last_blue;
  663. entity wp_first_general;
  664. entity wp_last_general;
  665. .entity wp_chain;
  666. .float last_status_bar_update;
  667. float last_flag_pickup;
  668. float last_flag_capture;
  669. float last_capture_team;
  670. float last_pickup_team;
  671. float last_order_time_team1;
  672. float last_order_time_team2;
  673. float level_over_time;
  674. .float shirt_color;
  675. .float observer_flags;
  676. .float disable_triggers;
  677. .float toggle_ents_time;
  678. .float bot_wants_item;
  679. .float escort_time;
  680. .float hook_snag_time;
  681. .float last_say;
  682. .float noticed_item_time;
  683. .float next_waypoint_time;
  684. .float trigger_search_time;
  685. .float help_teammate_time;
  686. .float getoutofwater_time;
  687. .float find_enemy_time;
  688. .float find_item_time;
  689. .float watermove_time;
  690. .float last_kill_time;
  691. .entity last_kill_ent;
  692. .float last_die_time;
  693. .entity last_die_ent;
  694. .float last_follow_spawn;
  695. .float num_follows;
  696. .entity follow_head;
  697. .entity follow_tail;
  698. .entity follow_prev;
  699. .entity follow_next;
  700. .vector current_velocity;
  701. .float current_evade_yaw;
  702. .vector camping_spot;
  703. .float camping_time;
  704. .float last_see_camp_ent;
  705. .float bot_blocked;
  706. .float bsort;
  707. .float bot_ignore_until_time;
  708. .float bot_ignore_team;
  709. .float large_dist_pulse;
  710. .float bogus_start;
  711. .float dynamically_created;
  712. .float spawn_time;
  713. .float stuck_count;
  714. .float enemy_team;
  715. .float last_weapon_shot;
  716. .float hooked_on_someone;
  717. .entity bot_enemy;
  718. .float bot_plan;
  719. .float games;
  720. .float playtime;
  721. .entity debug_marker;
  722. .entity camping_entity;
  723. .entity escort_entity;
  724. .string save_model;
  725. .float enemy_notice_time;
  726. .vector bot_aim;
  727. .string altname;
  728. .string botname;
  729. .float rune_drop_time;
  730. .float last_rune;
  731. .float bot_action;
  732. .float old_waterlevel;
  733. .float old_watertype;
  734. .vector spawnorigin;
  735. .float fire_hook_immediately;
  736. .float simulated_client;
  737. .float clientcolors; // colors of the bot_client (format: pants + shirt * 16)
  738. .entity inaccessible_entity;
  739. .float get_item_stuck_count;
  740. float num_inaccessible_entities;
  741. .float inaccessible_count;
  742. .float spawntime;
  743. .float bot_skill;
  744. .float large_dist_pulse_items;
  745. .float bsk_next_pulse_time;
  746. .float bsk_next_pulse_time_items;
  747. .float bsk_extra_large_pulse_dist;
  748. .float bsk_extra_awareness_dist;
  749. .float bsk_extra_jump_chance;
  750. .float bsk_move_while_firing;
  751. .float bot_skill_inverse;
  752. .float bsk_evade_chance;
  753. .float bsk_bot_fov;
  754. .float bsk_reaction_time;
  755. .float bsk_skill_lin1;
  756. .float bsk_skill_lin2;
  757. .float bsk_skill_lin3;
  758. float large_pulse_dist_base;
  759. float awareness_dist_base;
  760. float item_large_pulse_dist_base;
  761. float item_awareness_dist_base;
  762. float large_pulse_dist;
  763. float awareness_dist;
  764. float item_large_pulse_dist;
  765. float item_awareness_dist;
  766. .vector gib_velocity;
  767. .float lastweapon_shot;
  768. .entity last_carrier;
  769. .float flag_toss_time;
  770. .float explore_item_num;
  771. .string explore_item_name;
  772. .float waypoint_num;
  773. .float shoot_triggers;
  774. float use_extra_move_frame;
  775. .void() extramove_oldthink;
  776. .float extramove_yaw;
  777. .float extramove_dist;
  778. .float extramove_lastframewasextra;
  779. float use_norse_movetogoal    = 0;
  780. float last_camera_update    = 0;
  781. float auto_camera_view;
  782. float auto_fov_control;
  783. entity cur_camera_watch_ent;
  784. entity last_camera_ent;
  785. float orig_flag1_health;
  786. float orig_flag2_health;
  787. entity goal_winner;
  788. entity quadtrain;
  789. entity lastspawn; // Tekno, updated holds last known position a player or bot spawned in....that was not world.
  790. entity TEAM1HEAD;
  791. entity TEAM2HEAD;
  792. entity COPPHEAD;
  793. entity STARTHEAD;
  794. entity DMHEAD;
  795. entity TELEHEAD;
  796. float INTERMISSIONS;
  797. .float CamState;
  798. .entity scan; // Tekno for scanning through camera locaitons
  799. .float button_debounce;
  800. float registered;
  801. .float nextfootstep;
  802. .float num_kills;
  803. .float num_deaths;
  804. .float num_suicides;
  805. .float num_captures;
  806. .float num_pickups;
  807. .float num_recovery;
  808. .float num_assists;
  809. .float num_bonus;
  810. .float suspicious_about_time;
  811. .vector suspicious_about;
  812. .float best_wep;
  813. .float ITbest_wep;
  814. float TEAM_NORSE_MOVEMENT    = 32768;
  815. float TEAM_NOSELFHURT    = 4096;
  816. .string talkname;
  817. string nextmap;
  818. .float cshift; // Tekno sets fade out and fade in status
  819. .float cshift_num; // Value stuffed during fade in and fadeout effect
  820. .float sex;
  821. void () BotSayGoodGame;
  822. void () RemoveAllBots;
  823. void () checkyaw;
  824. void () Bot_Attack;
  825. float () FireHookAtBestOutOfWaterWaypoint;
  826. void () wall_look;
  827. float (entity targ) BotCanSeePlayer;
  828. float () MaybeFightFlagCarrier;
  829. entity ( entity targ) BotCanSeePlayerFollow;
  830. void () CheckGiveUpCamping;
  831. void () StopFighting;
  832. float () MaybeGoToTempWaypoint;
  833. float () MaybeTryNotToDrown;
  834. float () MaybeGetItems;
  835. float () SetSpecialGoals;
  836. float () MaybeGetOutOfWater;
  837. float (float force_search) MaybeShootTriggers;
  838. float () MaybeFireHook;
  839. void () NothingToDo;
  840. void () patternchange;
  841. .float use_defensive_way;
  842. float botmastermind;
  843. float MAX_BOTS_TO_PRINT    = 20;
  844. float TEAM_PRINT_DELAY    = 45;
  845. float teamScorePrintTime;
  846. float timer_flag;
  847. float TEMP1_MULTI    = 1;
  848. float TEMP1_YCAM    = 2;
  849. float TEMP1_FRAGASCAPTURE    = 4;
  850. float TEMP1_USEDEFWAYS    = 16;
  851. float TEMP1_AUTOLEVEL    = 32;
  852. float TEMP1_LOADMOD    = 64;
  853. float TEMP1_BOTAUTOPLAN    = 128;
  854. float TEMP1_SUPPORT_PLAYER2    = 256;
  855. float TEMP1_SUPPORT_PLAYER3    = 512;
  856. float TEMP1_SUPPORT_PLAYER4    = 1024;
  857. float TEMP1_AUTO_EVEN_TEAMS    = 2048;
  858. float TEMP1_PLAYER2SOUNDS    = 4096;
  859. float TEMP1_PLAYER3SOUNDS    = 8192;
  860. float TEMP1_PLAYER4SOUNDS    = 16384;
  861. float TEMP1_HALFLIGHT    = 32768;
  862. float TEMP1_NOMESS    = 65536;
  863. float intermission_running;
  864. float intermission_exittime;
  865. float captures_blue;
  866. float captures_red;
  867. float modelindex_eyes;
  868. float modelindex_player;
  869. float modelindex_playerf;
  870. float modelindex_player2;
  871. float modelindex_player3;
  872. float modelindex_player4;
  873. float modelindex_bot;
  874. float DM_REGULAR    = 1;
  875. float DM_WEAPONS_STAY    = 2;
  876. float DM_NO_HEALTH    = 4;
  877. float DM_NO_ARMOR    = 8;
  878. float DM_NO_ITEMS    = 16;
  879. float DM_DROP_QUAD    = 32;
  880. float DM_DROP_RING    = 64;
  881. float DM_NO_FALLING    = 128;
  882. float DM_INFINITE_AMMO    = 256;
  883. float DM_FIXED_FOV    = 512;
  884. float DM_SPAWN_RANDOM    = 1024;
  885. float DM_START_SMALL    = 2048;
  886. float DM_START_BIG    = 4096;
  887. float DM_SECRET_DOOR    = 8192;
  888. float DM_NORUNES    = 16384;
  889. float DM_FASTPLATS    = 32768;
  890. float DM_NO_POWERUPS    = 65536;
  891. void () MOTD_ChooseTeam;
  892. float qqbot;
  893. float qtr_1;
  894. float qtr_3;
  895. .float fChasing;
  896. // Creepcam stuff
  897. float modelindex_head;
  898. float numberofclients;
  899. .float client_;
  900. entity first_client;
  901. float FL_CREEPCAM    = 8388608;
  902. .entity next;
  903. vector start;
  904. entity viewport;
  905. .entity clink;
  906. float PF_FIRSTPERSON    = 1;
  907. .float creepflags;
  908. entity first_creepcam;
  909. .entity previous;
  910. .float player_;
  911. float PF_NONAMES    = 16;
  912. float SVC_CENTERPRINT    = 26;
  913. float enter    = 10;
  914. float space    = 32;
  915. float quote    = 34;
  916. float minus    = 45;
  917. float _0    = 48;
  918. float _1    = 49;
  919. float _2    = 50;
  920. float _3    = 51;
  921. float _4    = 52;
  922. float _5    = 53;
  923. float _6    = 54;
  924. float _7    = 55;
  925. float _8    = 56;
  926. float _9    = 57;
  927. float colon    = 58;
  928. float _A    = 65;
  929. float _B    = 66;
  930. float _C    = 67;
  931. float _D    = 68;
  932. float _E    = 69;
  933. float _F    = 70;
  934. float _G    = 71;
  935. float _H    = 72;
  936. float _I    = 73;
  937. float _J    = 74;
  938. float _K    = 75;
  939. float _L    = 76;
  940. float _M    = 77;
  941. float _N    = 78;
  942. float _O    = 79;
  943. float _P    = 80;
  944. float _Q    = 81;
  945. float _R    = 82;
  946. float _S    = 83;
  947. float _T    = 84;
  948. float _U    = 85;
  949. float _V    = 86;
  950. float _W    = 87;
  951. float _X    = 88;
  952. float _Y    = 89;
  953. float _Z    = 90;
  954. float _a    = 97;
  955. float _b    = 98;
  956. float _c    = 99;
  957. float _d    = 100;
  958. float _e    = 101;
  959. float _f    = 102;
  960. float _g    = 103;
  961. float _h    = 104;
  962. float _i    = 105;
  963. float _j    = 106;
  964. float _k    = 107;
  965. float _l    = 108;
  966. float _m    = 109;
  967. float _n    = 110;
  968. float _o    = 111;
  969. float _p    = 112;
  970. float _q    = 113;
  971. float _r    = 114;
  972. float _s    = 115;
  973. float _t    = 116;
  974. float _u    = 117;
  975. float _v    = 118;
  976. float _w    = 119;
  977. float _x    = 120;
  978. float _y    = 121;
  979. float _z    = 122;
  980. float tilde    = 126;
  981. float backspace    = 127;
  982. .float block0;
  983. .float block1;
  984. .float block2;
  985. .float block3;
  986. .float block4;
  987. float character;
  988. float block_;
  989. .float button0;
  990. .float button1;
  991. .float button2;
  992. float BUTTON0    = 1;
  993. float BUTTON2    = 2;
  994. float NOT_BUTTON0    = 16777214;
  995. float NOT_BUTTON2    = 16777213;
  996. entity creep_self;
  997. float SVC_SETVIEWPORT    = 5;
  998. entity non_viewport;
  999. float takedamage_exists;
  1000. entity test_enemy;
  1001. entity first_takedamage;
  1002.  
  1003. void (string name, float botteam, float bskill) QBotCreate;
  1004. .float search_time
  1005. void () set_player_main_index =
  1006. {
  1007.     if (((self.sex == DM_WEAPONS_STAY) && (temp1 & TEMP1_SUPPORT_PLAYER2)))
  1008.     {
  1009.         self.modelindex = modelindex_playerf;
  1010.     }
  1011.     else
  1012.     {
  1013.         if (((self.sex == 3) && (temp1 & TEMP1_SUPPORT_PLAYER3)))
  1014.         {
  1015.             self.modelindex = modelindex_player3;
  1016.         }
  1017.         else
  1018.         {
  1019.             if (((self.sex == DM_NO_HEALTH) && (temp1 & TEMP1_SUPPORT_PLAYER4)))
  1020.             {
  1021.                 self.modelindex = modelindex_player4;
  1022.             }
  1023.             else
  1024.             {
  1025.                 if (self.classname == "bot" && self.sex != 2)
  1026.                 self.modelindex = modelindex_bot;
  1027.                 else
  1028.                 self.modelindex = modelindex_player;
  1029.             }
  1030.         }
  1031.     }
  1032.  
  1033. };
  1034.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement