Development:Network:process combat

From Ghoulwiki
Revision as of 23:33, 17 June 2012 by Ghoulsblade (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

example packetlog : cycling nav targets

cycle-target-nav

-- packetlogs/combat-cycle-target-nav.c
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=474,datalen=4,flags=0x0}}})

fire-weapons-space

-- packetlogs/combat-fire-weapons-space.c
-- // fire weapons into space (admonisher standard, 4x heavy ion beam, 2x pugilist, very short fire hold)
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=474,datalen=41,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=44,flags=0x0}}})
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0x0},{cmd=21,serial=474,datalen=39,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=474,datalen=35,flags=0x0}}})

target-other-player

-- packetlogs/combat-target-other-player.c
-- // target and lock other player using p (nearest to crosshair)
Packet({from=client,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0x0},{cmd=22,serial=474,datalen=4,flags=0x0}}})

fire-weapons-other-player

-- packetlogs/combat-fire-weapons-other-player.c
-- // shoot at other player (admonisher standard, 4x heavy ion beam, 2x pugilist, very short fire hold)
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=474,datalen=41,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=44,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=474,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=474,datalen=34,flags=0x0}}})
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0x0},{cmd=21,serial=474,datalen=39,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=474,datalen=35,flags=0x0}}})

other-player-targets-me

-- packetlogs/combat-other-player-targets-me.c
Packet({from=server,cmd=CMD_TARGET,head={{len=20,pri=1,flags=0xd6},{cmd=22,serial=483,datalen=4,flags=0x0}}})

other-player-shoots-me

-- packetlogs/combat-other-player-shoots-me.c
-- // other player shoots at me
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=483,datalen=44,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=483,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=483,datalen=35,flags=0x0}}})

shoot-and-kill-other-player

-- packetlogs/combat-shoot-and-kill-other-player.c
-- // shoot and kill other player
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=57,pri=1,flags=0x0},{cmd=20,serial=486,datalen=41,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=44,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=67,pri=1,flags=0xd6},{cmd=41,serial=0,datalen=51,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=483,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=483,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=51,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=35,flags=0x0}}})
... several CMD_SAVEDATA ...
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=52,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=36,flags=0x0}}})
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=173,pri=1,flags=0xd6},{cmd=13,serial=0,datalen=157,flags=0x0}}})
Packet({from=client,cmd=CMD_FIREREQUEST,head={{len=47,pri=1,flags=0x0},{cmd=20,serial=486,datalen=31,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=486,datalen=34,flags=0x0}}})
Packet({from=client,cmd=CMD_UNFIREREQUEST,head={{len=55,pri=1,flags=0xb2},{cmd=21,serial=486,datalen=39,flags=0x0}}})
Packet({from=server,cmd=CMD_UNFIREREQUEST,head={{len=51,pri=1,flags=0xd6},{cmd=21,serial=486,datalen=35,flags=0x0}}})

other-player-respawns-docked

-- packetlogs/combat-other-player-respawns-docked.c
-- // other player respawns, is docked on planet
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9607,pri=1,flags=0xd6},{cmd=13,serial=492,datalen=9591,flags=0x0}}})
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=20,pri=1,flags=0xd6},{cmd=40,serial=0,datalen=4,flags=0x0}}})
Packet({from=server,cmd=CMD_DOCK,head={{len=25,pri=1,flags=0xd6},{cmd=38,serial=492,datalen=9,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=71,pri=1,flags=0xd6},{cmd=49,serial=0,datalen=55,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})
Packet({from=server,cmd=CMD_CARGOUPGRADE,head={{len=66,pri=1,flags=0xd6},{cmd=41,serial=492,datalen=50,flags=0x0}}})

other-player-shoots-and-kills-me

-- packetlogs/combat-other-player-shoots-and-kills-me.c
-- // other player shoots and kills me
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=60,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=44,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_FIREREQUEST,head={{len=50,pri=1,flags=0xd6},{cmd=20,serial=492,datalen=34,flags=0x0}}})
Packet({from=server,cmd=CMD_KILL,head={{len=16,pri=1,flags=0xd6},{cmd=27,serial=486,datalen=0,flags=0x0}}})