hackerspace-ntnu / hackerspace-ntnu/Red-Planet-Rampage

Lawn mower body can't fire after being equipped a second time

Open
#989 0 comments 0 reactions 0 assignees View on GitHub
augment bug
Dominant language
C#
Stars
32
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- so the thing with lawn mower is already introduced in early commit
- has to do with particle system .Play() in barrel animator, not in the augment code
- kræsjer når du velger den for andre gang
- reproduser ved å equippe den i training mode

stack trace:
```
Failed to fire gun on owner's client!
System.NullReferenceException
at (wrapper managed-to-native) UnityEngine.ParticleSystem.Play(UnityEngine.ParticleSystem,bool)
at UnityEngine.ParticleSystem.Play () [0x00001] in <9d26b2cbfe5346ba806200a139150ae6>:0
at MowerAnimator.OnReload (GunStats stats) [0x00000] in <2ff6979936b64434850023e8698cc849>:0
at (wrapper delegate-invoke) .invoke_void_GunStats(GunStats)
at GunController.Reload (System.Single fractionNormalized) [0x00053] in <2ff6979936b64434850023e8698cc849>:0
at LawnMower.Reload (GunStats stats) [0x00000] in <2ff6979936b64434850023e8698cc849>:0
at LawnMower.Fire (GunStats stats) [0x000b5] in <2ff6979936b64434850023e8698cc849>:0
at (wrapper delegate-invoke) .invoke_void_GunStats(GunStats)
at GunController.FireGun () [0x0004d] in <2ff6979936b64434850023e8698cc849>:0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.