Fix and add features #3

Merged
Terkoiz merged 3 commits from CWX/Freecam:master into master 2023-02-21 12:04:57 -05:00
Contributor

Features:
Add toggle for Fall damage,
Restructure to add sln
Change design to attach to gameworld on Raid start,
implement Destroys.

Fix:
Fix un-needed Dependencies,
Fix bug with on raid end whilst in freecam,
Fix FreeCam script calculations to be faster (jetbrains says so :))

Changes:
Changed to disable GamePlayerOwner instead of Detours,
Changed GitIgnore as im a Rider pleb now,
Init Camera, script and getting gamePlayerOwner to the start of the script,
Change method of getting Player.

Features: Add toggle for Fall damage, Restructure to add sln Change design to attach to gameworld on Raid start, implement Destroys. Fix: Fix un-needed Dependencies, Fix bug with on raid end whilst in freecam, Fix FreeCam script calculations to be faster (jetbrains says so :)) Changes: Changed to disable GamePlayerOwner instead of Detours, Changed GitIgnore as im a Rider pleb now, Init Camera, script and getting gamePlayerOwner to the start of the script, Change method of getting Player.
CWX added 1 commit 2023-02-18 15:33:45 -05:00
Terkoiz requested changes 2023-02-18 15:59:08 -05:00
@ -242,56 +220,18 @@ namespace Terkoiz.Freecam
{
// If the GameWorld instance is null or has no RegisteredPlayers, it most likely means we're not in a raid

Update the comments if you change the related code

Update the comments if you change the related code
Author
Contributor

changed

changed
Terkoiz marked this conversation as resolved
@ -247,4 +224,3 @@
return null;
}
// One of the RegisteredPlayers will have the IsYourPlayer flag set, which will be our own Player instance

Same comment as above

Same comment as above
Author
Contributor

removed as i didnt think it was needed

removed as i didnt think it was needed
Terkoiz marked this conversation as resolved
@ -0,0 +21,4 @@
return;
// Add FreeCamController to GameWorld GameObject
gameworld.GetOrAddComponent<FreecamController>();

Sam says:

If you want multiversion compatibility, you shouldn't use GetOrAddComponent as this is eft GClassXX extension method, which means compiler will transfer it into GClass call that will change at some point and the mod will need to be recompiled with changed assembly-csharp in references

Sam says: > If you want multiversion compatibility, you shouldn't use GetOrAddComponent as this is eft GClassXX extension method, which means compiler will transfer it into GClass call that will change at some point and the mod will need to be recompiled with changed assembly-csharp in references
Author
Contributor

changed to gameworld.GameObject.AddComponent instead

changed to gameworld.GameObject.AddComponent instead
Terkoiz marked this conversation as resolved
@ -127,0 +123,4 @@
TogglesSectionName,
"FallHeightToggle",
true,
"True disables fall damage, False doesn't simplez");

Change the description to be more consistent with others, ex: If enabled, will disable all fall damage for the player.

Change the description to be more consistent with others, ex: `If enabled, will disable all fall damage for the player.`
Author
Contributor

done

done
Terkoiz marked this conversation as resolved
@ -5,4 +0,0 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Terkoiz.Freecam")]

Missing assembly info replacements for the remade project. Yes, I'm that autistic.

Missing assembly info replacements for the remade project. Yes, I'm that autistic.
Author
Contributor

added it, Shrug to what it does tho

added it, Shrug to what it does tho
Terkoiz marked this conversation as resolved
CWX added 1 commit 2023-02-18 16:35:24 -05:00
CWX requested review from Terkoiz 2023-02-18 16:38:04 -05:00
CWX added 1 commit 2023-02-18 17:13:42 -05:00
Terkoiz merged commit 9801f92d69 into master 2023-02-21 12:04:57 -05:00
This repo is archived. You cannot comment on pull requests.
No Reviewers
No Label
No Milestone
No project
2 Participants
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Terkoiz/Freecam#3
No description provided.