Closed Wolftein closed 11 years ago
AddToPlayer is not called for such items. If under windows it's called, it would mean your hamdata.ini is not updated or something.
Thats weird then, because i'm using the last hamdata.ini you gave me. hookPickupBattery is called when i pick a battery then a health-kit under linux and in windows both are working.
Looking a SC 4.7 under IDA and it's vtable, it seems some of offsets provided in hamdata.ini are shifted. Don't remember 4.6 but it seems virtual functions have been inserted at some place, shifting all offsets below. For example, AddToPlayer should start to 76 and not 75. Will try to update the file, and I will give you later a link to this updated file, so you can test.
Try the new hamdata.ini version (direct link). I've fixed few things as you can see. (don't forget to stop your server before) Still, AddToPlayer should not be called on such items. Anyway, try some functions and tell me if it works better.
@Wolftein : did you do some test ?
@Arkshine works perfect!, thanks.
hookPickupHealthKit is never called when i pickup a healthkit, hookPickupBattery will print "Hello from battery: Sven Co-op #1 http://gamerarg.com.ar" (My server name) when i pick a battery.
Those are working fine on windows. (I'm not using wine anymore)