X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fhavocbot%2Fhavocbot.qh;h=36b4c33fd9b5a3bdcfdf5645c97afda9c915821d;hb=109c5785a22fb4336ac5e91d5f1fa91678582164;hp=de94691822e902631b6bbe732162d5bb22270d92;hpb=d8462cdfd7d8ed7880c1f0536b1b4c354ed81d70;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/havocbot/havocbot.qh b/qcsrc/server/bot/havocbot/havocbot.qh index de9469182..36b4c33fd 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qh +++ b/qcsrc/server/bot/havocbot/havocbot.qh @@ -1,3 +1,5 @@ +#pragma once + /* * Globals and Fields */ @@ -31,27 +33,27 @@ * Functions */ -void havocbot_ai(); -void havocbot_aim(); -void havocbot_setupbot(); -void havocbot_movetogoal(); -void havocbot_chooserole(); -void havocbot_chooseenemy(); -void havocbot_chooseweapon(); -void havocbot_bunnyhop(vector dir); -void havocbot_keyboard_movement(vector destorg); +void havocbot_ai(entity this); +void havocbot_aim(entity this); +void havocbot_setupbot(entity this); +void havocbot_movetogoal(entity this); +void havocbot_chooserole(entity this); +void havocbot_chooseenemy(entity this); +void havocbot_chooseweapon(entity this); +void havocbot_bunnyhop(entity this, vector dir); +void havocbot_keyboard_movement(entity this, vector destorg); -float havocbot_resetgoal(); -float havocbot_moveto(vector pos); -float havocbot_moveto_refresh_route(); +float havocbot_resetgoal(entity this); +float havocbot_moveto(entity this, vector pos); +float havocbot_moveto_refresh_route(entity this); vector havocbot_dodge(); -.void() havocbot_role; -.void() havocbot_previous_role; +.void(entity this) havocbot_role; +.void(entity this) havocbot_previous_role; -void(float ratingscale, vector org, float sradius) havocbot_goalrating_items; -void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers; +void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items; +void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers; /* * Imports @@ -60,4 +62,3 @@ void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplay .entity draggedby; .float ladder_time; .entity ladder_entity; -