OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
client_view_test Namespace Reference

Functions

 main ()

Variables

 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
dict DEFAULT_CLIENT = {115: 'build/check-linux-10/cod2_linux', 118: 'build/check-linux/cod2_linux'}
dict DEFAULT_SERVER = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'}

Detailed Description

A client is shot, blasted and killed, and watches a player die.

    python3 scripts/client_view_test.py /path/to/CoD2 --protocol {115|118} [--binary PATH] [--server PATH]

Runs the dedicated server with scripts/contact_test.py's mod, joins its target
as a minimal client and then a real client (cod2_linux), which the mod places
in front of the target, facing it. The target shoots the client and throws a
grenade at it, then twice the test has the mod kill the target (rcon
contact_phase kill): the client draws the corpse the server clones and
predicts its own moves meanwhile. Last the mod kills the client
(killmover), which spawns again. The client must still run without a crash
report, and the hits, deaths and spawns must all have happened; the
players' bone controllers it traces (COD2_TRACE_CONTROLLERS) must stay finite
and within 180 degrees.
The client opens a window and needs a CD key in ~/.cod2/preferences; without
one the test is skipped (exit 0). Exits with 0 when all of that holds.

Function Documentation

◆ main()

client_view_test.main ( )

Variable Documentation

◆ DEFAULT_CLIENT

dict client_view_test.DEFAULT_CLIENT = {115: 'build/check-linux-10/cod2_linux', 118: 'build/check-linux/cod2_linux'}

◆ DEFAULT_SERVER

dict client_view_test.DEFAULT_SERVER = {115: 'build/check-linux-10/cod2_lnxded', 118: 'build/check-linux/cod2_lnxded'}

◆ ROOT

client_view_test.ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))