Server Help

Bot Questions - Damage Packet? Protocol?

milosh - Fri Dec 14, 2007 3:21 pm
Post subject: Damage Packet? Protocol?
I'm trying to get TWCore's bots to send damage packets when they are hit. I've been looking through D1st0rt's Packet Protocol Page(http://d1st0rt.sscentral.com/packets.html), but I can't seem to find a packet for damage. I'm assuming it's one of the yet to be found packets listed there...
0x04
0x0A
0x11
0x12
0x14
0x1D
0x21
0x22
So I'm wondering if anyone could point a newcomer in the right direction to discovering the packet and it's protocol. Any help is much appreciated biggrin.gif .
CypherJF - Fri Dec 14, 2007 5:36 pm
Post subject:
Damage packet? Why would the server send damage packets to the client? Isn't it be calculated based on a weapon algorithm on the client?
Bak - Fri Dec 14, 2007 9:52 pm
Post subject:
cypher is right, it's done client side.
D1st0rt - Sat Dec 15, 2007 11:50 am
Post subject:
You may be interested in the SpaceShip class Sika wrote a while back. I can't remember it working in a long time though, so you might need to tweak it.
Smong - Sun Dec 16, 2007 6:33 pm
Post subject:
There's also watchdamage.h in the asss project. The c2s type is 0x32.

Since *watchdamage is a cont feature, there is a possibility it won't work on bots (as in if you pm a bot *watchdamage subgame won't forward the request to the client).
milosh - Tue Dec 18, 2007 2:22 am
Post subject:
Yeah, that's what confused me. Thanks.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group