f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

[Bug] Set correct damage indicators #117

Closed f3cuk closed 9 years ago

f3cuk commented 9 years ago

Right now indicators don't work, they always show green even though individual parts are damaged.

f3cuk commented 9 years ago

I really don't know how to fix this, tried many different things but none seem to work.

azmodii commented 9 years ago

I may have a solution....

https://community.bistudio.com/wiki/setHit

Try applying the damage using this. object_setHitServer only updates the servers information, not the clients. Technically, using setHit should fire object_setHitServer anyway. If not, manually fire your own PVEH and use psuedo code from object_setHitServer to save the damage, but not reapply it.

f3cuk commented 9 years ago

Thanks azmodii, i will look into that =)

TBDominator commented 9 years ago

Hey F3cuk, awesome work with these updates!

I have a quick question in relation to this issue you have marked as "Bug". When I hop into my vehicle that spawns from mission file, my vehicle has No damage and I get the following Server RPT errors that keep going and don't stop:

21:34:36 "PUBLISH: Attempt B 1-1-B:1 (Troy) REMOTE" 21:34:36 "HIVE: WRITE: "CHILD:308:24:Old_moto_TK_Civ_EP1:0:9360:[349.435,[2872.01,7486.43,0.0393696]]:[[[],[]],[[],[]],[[],[]]]:[["engine",0.271229],["sklo predni P",0.203252],["sklo predni L",0.615053],["karoserie",0.26175],["palivo",0.397361],["Pravy predni tlumic",0.25499],["Pravy zadni tlumic",0.397267]]:0.286502:28720748640349:"" 21:34:36 "PUBLISH: Created Old_moto_TK_Civ_EP1 with ID "28720748640349"" 21:34:36 "HIVE: WRITE: "CHILD:388:28720748640349:"" 21:34:36 "CUSTOM: trying again to get id for: "28720748640349"" 21:34:36 "HIVE: WRITE: "CHILD:388:28685748811349:"" 21:34:36 "CUSTOM: trying again to get id for: "28685748811349"" 21:34:37 "HIVE: WRITE: "CHILD:388:28720748640349:"" 21:34:37 "CUSTOM: trying again to get id for: "28720748640349"" 21:34:37 "HIVE: WRITE: "CHILD:388:28685748811349:"" 21:34:37 "CUSTOM: trying again to get id for: "28685748811349"" 21:34:38 "HIVE: WRITE: "CHILD:388:28720748640349:"" 21:34:38 "CUSTOM: trying again to get id for: "28720748640349"" 21:34:38 "HIVE: WRITE: "CHILD:388:28685748811349:"" 21:34:38 "CUSTOM: trying again to get id for: "28685748811349""

Is this related to the bug or is this something totally different?

This happens with any missions that spawn a drivable vehicle.

Any help would be amazing! Thank you

f3cuk commented 9 years ago

Yes this is exactly what is happening. The vehicles do get damage, but the indicators won't show it until restart.

f3cuk commented 9 years ago

Should be fixed by latest commit