X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fhavocbot%2Fhavocbot.qh;h=4a391b6e7ceb9682a2df64023aa98751e88974d1;hb=8ba1f6c672361186033b8bebc3be677ac94bd4da;hp=de94691822e902631b6bbe732162d5bb22270d92;hpb=061da0b6c05bc4404ba3ca5889091e82e705aa48;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/havocbot/havocbot.qh b/qcsrc/server/bot/havocbot/havocbot.qh index de9469182..4a391b6e7 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(); +vector havocbot_dodge(entity this); -.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; -