Ejemplo n.º 1
0
 def makemovepacket(ent):
     #ent.velocity actually has to make a foreign function
     #call to C to get the velocity, so we only want to call it once
     ev = ent.velocity
     return str(GameProtocol.MoveEnt(ent.entID,
                                 ent.location.x,
                                 ent.location.y,
                                 ent.location.z,
                                 ent.q4.x,
                                 ent.q4.y,
                                 ent.q4.z,
                                 ent.q4.w,
                                 ev.x, ev.y, ev.z
                                 ))
Ejemplo n.º 2
0
 def makeUpdatePacket(self):
     return str(
         GameProtocol.MoveEnt(self.entID, self.location.x, self.location.y,
                              self.location.z, self.q4.x, self.q4.y,
                              self.q4.z, self.q4.w, 0, 0, 0))