#Zap gun effect works only for host

3 messages · Page 1 of 1 (latest)

worldly estuary
#

I tried to make mod for zap gun 'turrets' for ship :
you can buy it,
you activate it by terminal,
when you activate, zap gun activates from the roof and targets entities around ship (and players that are not in ship) and stuns is for 2-3s

The problem: i tried to just create zap effect in LateUpdate Patch of PatcherTool class and it works... For host...
Client doesn't have errors, even got ScanGun() triggered in console for client, some logs but no particle effects and stun effect/slow.
When host uses terminal command 'wave' to trigger that effect clients can see it, can be stunned
When client trigger it nothing happen, just logs in console like everything is good.... Idk why. Any idea?

Code:
https://github.com/MrPatryk/AShip

GitHub

Lethal Comapny MOD. Contribute to MrPatryk/AShip development by creating an account on GitHub.

#

Added compiled .dll to try it out and video how it works

worldly estuary
#

bump, still need help 😦 anyone? There is video how it works for host (look at git), when client try to type wave, there is message in terminal that he triggers that, in debug cmd console there is scangun() called etc without errors but doesn't work, like some action is not sync with host and by him send to other players 😡 I beg u help 😢 😢 😢