Releases: Halen84/ScriptHookRDR2DotNet-V2
Releases · Halen84/ScriptHookRDR2DotNet-V2
ScriptHookRDR2DotNet V2 - 2.2.0
- Updated ScriptHookRDR2DotNet internals to be more up to date with ScriptHookVDotNet, which also includes various fixes
Fixes
- Fixed a crash that would happen when passing in null/empty strings for native arguments
- Fixed a crash that would happen when trying to call pool functions. e.g
World.GetAllPeds()
,World.GetAllVehicles()
- Fixed entity proofs (for real this time)
Classes
RDR2.Native.Function
class accessibility has been reverted back topublic
. It is now possible to call native functions using this class again.- Reason behind this change is that you may need to call natives with different param types. e.g the native may have wrong param types, or its params are of type
Any
and the actual type is something else, making it impossible to call the native correctly. Note thatOutputArgument
class still no longer exists, for now.
- Reason behind this change is that you may need to call natives with different param types. e.g the native may have wrong param types, or its params are of type
- Made
Prompt
classinternal
for now, until the prompt text issues are solved RDR2.Tasks
has been renamed toTaskInvoker
, and has been completely rewritten with updated parameters and more functions- Added classes that help with easily modifying ped cores (eAttributeCore) and attributes (ePedAttribute)
- Added new class
AnimScene
to help with creating and playing animation scenes. e.g cutscenes, herb picking, eating, etc
Class Updates
- Updated
Entity
class:Entity.IsAttached()
is no longer a function, it is now a member:Entity.IsAttached
- Added
Entity.IsAttachedToAnyObject
- Added
Entity.IsAttachedToAnyPed
- Added
Entity.IsAttachedToAnyVehicle
- Added
Entity.CarriableState
- Added
Entity.ClearProofs()
- Added
Entity.ProofBits
- Added alias
Entity.Forward
- Updated
Ped
class:- Removed attribute and core related functions. They have been replaced with variables
Ped.Cores
andPed.Attributes
- Added
Ped.EquipOutfitComponent()
- Added
Ped.PlaySpeech()
- Added
Ped.NeverLeavesGroup
- Added
Ped.GroupIndex
- Added
Ped.CanWrithe
- Removed attribute and core related functions. They have been replaced with variables
- Updated
World
class:- Added
World.SetAmbientRoadPopulationEnabled()
- Added
- Updated
Game
class:- Added
Game.GetGlobalPtr()
- Added
- Updates
Globals
class:- Added
Globals.Get()
- Added
Enums Additions & Changes
- Added and updated enums
- Added enum
eIkControlFlags
- Added enum
eFleeStyle
- Added enum
ePedAttribute
- Added enum
eSpeechParams
- Renamed
eEnterExitConfigFlags
toeEnterExitVehicleFlags
, and changed to be proper case - Renamed enum
VehicleDrivingFlags
toeDrivingFlags
- Renamed enum
Relationship
toeRelationshipType
, and updated types - Renamed enum
FiringPattern
toeFiringPattern
, and updated types - Renamed enum
PedCore
toeAttributeCore
- Updated
eScriptedAnimFlags
enum to be proper case
- Added enum
Misc
- Added some missing natives that were intentionally not included because they generated a
CS0306
, which has been fixed w/System.IntPtr
- Removed unused files
- Fixed some XML code comments
- Updated natives
- Other misc changes
ScriptHookRDR2DotNet V2 - 2.1.1.0
Notice: Function.Call()
is no longer a valid way to call natives in this version. Please use the native functions found in RDR2.Native
.
- Updated project framework to .NET Framework 4.8
- Made
RDR2.Native.Function
ainternal
class, meaning you can no longer use this class in your scripts to call natives. Please use the native functions found inRDR2.Native
instead. - Added implicit conversions between
int
, anything derived fromPoolObject
(Entity
,Ped
,Volume
, etc), andPlayer
, meaning you no longer have to explicitly usevar.Handle
when passing these classes into native functions. - Added new
Volume
class to help with game volumes - Added new
Audio
class to help with playing sounds (Not yet complete) - Added
Entity.IsInside
- Added enum
eColor
- Added enum
eExplosionTag
- Added many new ped hashes
- Fixed bold text in console
- Attempted to fix
TextElement
from not working properly
ScriptHookRDR2DotNet V2 - 2.1.0.1
- Updated natives to support Vector3 overloads
- Updated the in-game console
- Updated some text colors
- Added more keybinds
- Re-implemented script reloading
Screen.DisplaySubtitle
andScreen.PrintSubtitle
now have variadic overloads- Update prompt implementation. Note: Prompt text does not work yet.
- Removed
PoolObject.IsValid
(why did I add this again?) - Converted some enums to be proper case instead of upper case
- Added many new fields and code XML comments
- Added
Model.Dimensions
- Added
GameplayCamera.IsAimCamActive
- Added
Weapon.CanBeTwirled
- Added
Weapon.Model
- Added
Weapon.SlotHash
- Added
Weapon.Name
- Added
Vehicle.IsDraftVehicle
- Added
Vehicle.IsWrecked
- Added
Vehicle.IsOnFire
- Added
Vehicle.HasPropSetAttached
- Added
Vehicle.Explode()
- Added
ScriptHookRDR2DotNet V2 - 2.1.0.0
- Implemented proper support for template natives e.g
MISC.VAR_STRING
- Added many new class members and XML comments
- Added
Entity.IsPed
- Added
Entity.IsObject
- Added
Entity.IsVehicle
- Added
Entity.IsAnimal
- Added
Entity.IsUnderwater
- Added
Entity.IsFrozenInPlace
- Added
Entity.IsOwnedByThisScript
- Added
Entity.RequestOwnership()
- Added
Entity.IsStatic
- Added
Entity.IsDynamic
- Added
Entity.Opacity
- Added
Entity.IsMissionEntity
- Added
Entity.PositionNoOffset
- Added
Entity.SubmergedLevel
- Added
Ped.IsDeadOrDying
- Added
Ped.IsCarryingSomething
- Added
Ped.IsReadyToRender
- Added
Ped.IsUsingActionMode
- Added
Ped.IsUsingScenario
- Added
Ped.IsInScenario
- Added
Ped.IsChild
- Added
Ped.IsCowering
- Added
Ped.IsDrunk
- Added
Ped.Resurrect()
- Added
Ped.Revive()
- Added
Ped.Clean()
- Added
Ped.IsBeingArrested
- Added
Ped.IsExitingScenario
- Added
Ped.IsWrithing
- Added
Ped.IsStandingStill
- Added
Ped.IsAimingInTheAir
- Added
Ped.IsArrestingAPed
- Added
Ped.IsLeadingHorse
- Added
Ped.IsProne
- Added
Ped.IsClimbingLadder
- Added
Ped.IsSliding
- Added
Ped.IsOpeningDoor
- Added
Ped.IsFallingOver
- Added
Ped.StopRagdoll()
- Added
Ped.IsLassoed
- Added
Ped.IsEnteringVehicle
- Added
Ped.IsEnteringTransport
- Added
Ped.IsBeingHogtied
- Added
Ped.IsHogtied
- Added
Ped.IsHogtying
- Added
Ped.IsRespondingToThreat
- Added
Ped.IsIncapacitated
- Added
Ped.IsFatallyInjured
- Added
Game.DeltaTime
- Added
Game.PlayerBlip
- Added
Game.InCutscene
- Added
Game.MinimapZoom
- Added
Game.InMission
- Added
Game.LastInputMethod
- Added
Game.LastInputTime
- Added
Game.IsUsingKeyboardAndMouse
- Added PAD namespace wrappers to
Game
- Added
Player.ID
- Added
Player.IsFreeFocusing
- Added
Player.IsInDeadEye
- Added
Player.IsInEagleEye
- Added
Player.IsWanted
- Added
Player.ActiveHorse
- Added
Player.IsControlOn
- Added
Player.Cash
- Added
Player.Bounty
- Added
Player.GetFreeAimEntity()
- Added
Player.GetInteractionLockonTargetEntity()
- Added
- Other misc fixes and changes
ScriptHookRDR2DotNet V2 - 2.0.0.2
- Updated Natives
- Updated natives to include code comments
- Updated various flags
- Added new functions and class members
- Added
Entity.IsBulletProof
- Added
Entity.IsFlameProof
- Added
Entity.IsExplosionProof
- Added
Entity.IsCollisionProof
- Added
Entity.IsMeleeProof
- Added
Entity.IsSteamProof
- Added
Entity.IsSmokeProof
- Added
Entity.IsHeadshotProof
- Added
Entity.IsProjectileProof
- Added
Model.IsPed
- Added
Model.IsObject
- Added
Model.IsDraftVehicle
- Added
Model.IsHorse
- Added
Ped.Kill()
- Added
RDR2.UI.Drawing
- Added
- Fixed Model.ToString() hex format
- Other changes/fixes/improvements
ScriptHookRDR2DotNet V2 - 2.0.0.1
- Added new class members and functions
- Added
Screen.LetterBoxRatio
- Added
Screen.HasLetterBox
- Added
Screen.RequestLetterBox()
- Added
Screen.RequestLetterBoxImmediately()
- Added
Screen.PlayEffect()
- Added
Screen.StopEffect()
- Added
Screen.ClearEffect()
- Added
Screen.StopAllEffects()
- Added
Screen.DisplaySubtitle()
- Added
Game.InCutscene
- Added
Pickup.Object
- Added
Rope.IsBroken
- Added
Rope.IsAttachedTo()
- Added
Rope.Detach()
- Added
Rope.Release()
- Added
World.SetSnowCoverageType()
- Added
ScriptHookRDR2DotNet V2
- New native invoking system.
Function.Call()
is now obsolete, and should only be used internally.- Each native now has it's own defined function in
RDR2/Native/NativeDecl.cs
with its corresponding parameters and comments - Removed native hash enum.
- Each native now has it's own defined function in
- Improvements and changes to various classes (new members and functions)
- Pool import names have been changed to AB's C++ ones
- Added and changed many enums. There are still more to be added and changed
- Changed how the screen resolution is obtained. Now uses native C++ functions instead of RDR2 script commands.