-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ID_Dedicated
/null
for Npc.UserId
Parameter. Additional functionality: - Npc.LookAt
- Npc.ShootWeapon
- Npc.SetAimDownSight
- Player.UnloadWeapon
- Player.ToggleWeaponFlashlight
#2297
Conversation
Use "ID_Dedicated" to ensure an NPC is VSR Compliant Added Multiple Functions for NPC characters to Look at Points, and use a Held Firearm
Cedric on his way to demolish my PR: |
Yeah, with the PR, it should set the InstanceMode to DedicatedServer just like my previous fix functions for plugins did, which did appear to work properly. Also this was literally one of if not the final solutions we had made when looking a few months ago to solve the issue. |
Update: I DID miss something Lmfao, you cant set |
Did my best to get it working before I had to leave. Noticed I also overrode the shooting position when hitting players. Anyways, I simplified the if returns into one function, and use an IDestructible instead of NetworkIdentity. |
Gonna change more things and do comment stuff. Renaming functions to be more clear, etc |
Should be all done. Might need to fix a bug or two if it comes up, but this should work.
|
Fixed some formatting of Documentation and Usings Removed the ReloadWeapon Function from NPC.cs as Player.cs has it already.
Fixed Documentation with past commits, and also removed the ReloadWeapon function from NPCs since Player apparently has it already. I might move everything except for the ShootWeapon function in the Weapon stuff to Player as well. |
Quickly moved my weapon and LookAt functions to |
Should be good to go.
All was tested privately. VSR-options for NPCs (null/ |
At the request of Yamato, I looked to simplify the LookAt script. Now combined a lot of stuff into just a few lines, reduced math and use of Mathf.Repeat. Works just as well as it did before.
Just reverted a line of the documentation, thats it
Made two small changes to Documentation, sorry it took so long i got eepy |
ID_Dedicated
/null
for Npc.UserId
Parameter>
ID_Dedicated
/null
for Npc.UserId
Parameter>ID_Dedicated
/null
for Npc.UserId
Parameter. Additional functionality: - Npc.LookAt
- Npc.ShootWeapon
- Npc.SetAimDownSight
- Player.UnloadWeapon
- Player.ToggleWeaponFlashlight
Use
ID_Dedicated
ornull
to ensure an NPC is VSR Compliant (Uses Unverified/DedicatedHost instances, which will not take up slots or show on the Player List)Added Multiple Functions for NPC characters to Look at Points, and use a Held Firearm (Shooting, ADS, Flashlight, Reloading)
Had to remake this cause I fricked up branches 😅