OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
hud_options_test.py File Reference

Namespaces

namespace  hud_options_test

Functions

 hud_options_test.differing (path_a, path_b)
 hud_options_test.flipped (path)
 hud_options_test.with_objective (gsc, objective, team)
 hud_options_test.run (binary, game_dir, home, cfg, extra, log_path)
 hud_options_test.main ()

Variables

 hud_options_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
int hud_options_test.SECONDS = 180
tuple hud_options_test.OFFSET = (100, -100)
int hud_options_test.MIN_PIXELS = 200
int hud_options_test.MIN_GOAL_PIXELS = 20
str hud_options_test.START = 'wait 300\ncg_drawGun 0\nwait 40\nscreenshot opt_on\nwait 40\ncg_drawCompass 0\nwait 40\nscreenshot opt_off\nwait 40\n'
str hud_options_test.MOVED = f'cg_drawCompass 1\ncg_hudCompassOffsetX {OFFSET[0]}\ncg_hudCompassOffsetY {OFFSET[1]}\nwait 40\nscreenshot opt_moved\nwait 40\nquit\n'
str hud_options_test.OBJECTIVE = 'wait 300\ncg_drawGun 0\nwait 40\nscreenshot opt_goal\nwait 40\nquit\n'
dict hud_options_test.OBJECTIVES = {'none': None, 'right': '(2901, 2438, 80)', 'left': '(3201, 1918, 80), "white"', 'ahead': '(2791, 2028, 80)'}
int hud_options_test.MIN_WHITE_PIXELS = 100
str hud_options_test.NO_WRITE = 'wait 100\ncg_hudCompassOffsetX 5\nwait 60\nwriteconfig probe\nwait 5\nquit\n'