Skip to content

Commit

Permalink
Merge pull request #2 from Rbn3D/cam-algorithms
Browse files Browse the repository at this point in the history
Release 1.0
  • Loading branch information
Rbn3D committed Mar 24, 2018
2 parents 7c4a7d5 + 63eef0d commit 766e15c
Show file tree
Hide file tree
Showing 6 changed files with 526 additions and 153 deletions.
5 changes: 4 additions & 1 deletion CustomCameraVPlus.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ lookRightAngle = 80.0

[general]

# Support Look left/right/behind from Manual Transmission mod by ikt
# Support Look left/right/behind from Manual Transmission mod by ikt (Requires latest AppVeyor build of Manual Transmission Mod)
#
# https://ci.appveyor.com/project/E66666666/gtavmanualtransmission/build/artifacts
#
# Set to 1 to enable, 0 to disable
GetInputFromGearsAsi = 1

Expand Down
82 changes: 82 additions & 0 deletions CustomCameraVPlus.vcxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp" />
<ClCompile Include="script.cpp" />
<ClCompile Include="utils.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\inc\main.h" />
<ClInclude Include="..\..\inc\enums.h" />
<ClInclude Include="..\..\inc\natives.h" />
<ClInclude Include="..\..\inc\types.h" />
<ClInclude Include="script.h" />
<ClInclude Include="utils.h" />
</ItemGroup>
<ItemGroup>
<None Include="CustomCameraVPlus.ini" />
</ItemGroup>
<ItemGroup>
<Text Include="Install.txt" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{8D82F34A-1D64-465B-84B1-37F89AD3D20B}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>CustomCameraVPlus</RootNamespace>
<ProjectName>CustomCameraVPlus</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetExt>.asi</TargetExt>
<OutDir>bin\$(Configuration)\</OutDir>
<IntDir>tmp\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NativeSpeedo_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
<FloatingPointModel>Fast</FloatingPointModel>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<AdditionalOptions>..\..\lib\ScriptHookV.lib %(AdditionalOptions)</AdditionalOptions>
<AdditionalDependencies>E:\Trabajo\Dev\ScriptHookV_SDK_1.0.617.1a\inc\gainput\build\lib\Debug\gainput-d.lib;xinput.lib;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.16299.0\um\x64\WS2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Command>copy "$(TargetPath)" "E:\SteamLibrary\steamapps\common\Grand Theft Auto V\$(ProjectName).asi"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
3 changes: 3 additions & 0 deletions Install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Usage:
* Enter on any vehicle (except boat, helis and planes) and custom camera will be automatically enabled
* Look around, aim and shoot just like with the built-in camera.
* Switch between 3rd and 1st person view by pressing V (or other key mapped to switch views)
* Look left by pressing B, look right by pressing N
* Look behind by pressing C (or other key mapped to look behind)
* Toggle mod enabled by pressing 1.
* Reload ini settings by pressing F10.

* Lots of settings are configurable (check CustomCameraVPlus.ini)
13 changes: 13 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

1.0:

* Reworked 3rd person camera algorithm (completely rewritten)
* 3rd person camera rotation doesn't get affected by suspension bounciness
* Look around/aim/shoot has been reimplemented and now supports gamepad as well as keyboard
* Progressive deadzone implemented when looking with gamepad, for better aim precision
* Look left/right quickly by pressing hotkeys (configurable via ini file)
* Support to look left/right/back from steering wheel!
Requires an AppVeyor build of Manual Transmission Mod by @ikt (link below):
https://ci.appveyor.com/project/E66666666/gtavmanualtransmission/build/artifacts

* Other minor fixes and improvements
Loading

0 comments on commit 766e15c

Please sign in to comment.