Barotrauma
Real Sonar
Problems with the non-human client character
Obviously the sonar will not harm the creatures, but the sound and visual effects will stay if you playing under the creature client character (using "setclientcharacter"). Some of the server's using the mods that can provide players a possibility to play as creatures if they are died.

Seems like you was interested in implementing some "CreatureDamage" configuration, but eventually the most of logic ignores it with "isHuman" check. Please do something with it.

BR, and thanks for your work :steamthumbsup:
beryll1um
< >
Εμφάνιση 1-3 από 3 σχόλια
Disabling of the "Target Creatures" config helps, but code should be refactored. I would like to do it if there is will be any git repository, but seems it's not.
Seems like it's should fix the problem:
```lua
Lua/defaultconfig.lua:20
- config.CreatureDamage = true
+ config.CreatureDamage = false
Lua/sonarping.lua:87
- if character.isHuman and not muffleSonar then
+ if not muffleSonar then
Lua/sonarping.lua:189
- if character.isHuman and not muffleSonar then
+ if not muffleSonar then
```
Please check additionally, because I only spent 15 mins on this. Perhaps there is something I don't know.
Plag  [δημιουργός] 12 Φεβ, 21:45 
@beryll1um - Real Sonar does damage creatures, just much less than humans. However, the system was not built with clients controlling the creatures in mind which might explain some inconsistencies. I am currently away so I will take a closer look at your changes in a few days. In the meantime you can find the git repo here.[github.com]
< >
Εμφάνιση 1-3 από 3 σχόλια
Ανά σελίδα: 1530 50