OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
Loading...
Searching...
No Matches
plus_rules_test.Duel Class Reference

Public Member Functions

 __init__ (self, port, player, other)
 pump (self, seconds)
 shot (self)
 aim (self, up, dp, dy)
 aim_at_head (self)

Public Attributes

 port
 player = port, player

Static Public Attributes

 shooter = None

Detailed Description

A second client, 600 ms of lag behind, that stands in front of the
player, down the sights with no spread (plustest_duel). It joins once: a
client that leaves keeps its slot until it times out.

Constructor & Destructor Documentation

◆ __init__()

plus_rules_test.Duel.__init__ ( self,
port,
player,
other )

Member Function Documentation

◆ aim()

plus_rules_test.Duel.aim ( self,
up,
dp,
dy )

◆ aim_at_head()

plus_rules_test.Duel.aim_at_head ( self)
Records where the player's head is and aims at it; the gun's
offset, or None if the shot over the head missed the wall.

◆ pump()

plus_rules_test.Duel.pump ( self,
seconds )

◆ shot()

plus_rules_test.Duel.shot ( self)
Fires; where it hit the player, and the impacts on the world.

Member Data Documentation

◆ player

plus_rules_test.Duel.player = port, player

◆ port

plus_rules_test.Duel.port

◆ shooter

plus_rules_test.Duel.shooter = None
static

The documentation for this class was generated from the following file: