|
OpenCoD2-Plus
Call of Duty 2 client & server, rebuilt
|
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 | |
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.
| plus_rules_test.Duel.__init__ | ( | self, | |
| port, | |||
| player, | |||
| other ) |
| plus_rules_test.Duel.aim | ( | self, | |
| up, | |||
| dp, | |||
| dy ) |
| 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.
| plus_rules_test.Duel.pump | ( | self, | |
| seconds ) |
| plus_rules_test.Duel.shot | ( | self | ) |
Fires; where it hit the player, and the impacts on the world.
| plus_rules_test.Duel.player = port, player |
| plus_rules_test.Duel.port |
|
static |