Skip to content

Commit 766e15c

Browse files
authored
Merge pull request #2 from Rbn3D/cam-algorithms
Release 1.0
2 parents 7c4a7d5 + 63eef0d commit 766e15c

File tree

6 files changed

+526
-153
lines changed

6 files changed

+526
-153
lines changed

CustomCameraVPlus.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ lookRightAngle = 80.0
1313

1414
[general]
1515

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

CustomCameraVPlus.vcxproj

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Release|x64">
5+
<Configuration>Release</Configuration>
6+
<Platform>x64</Platform>
7+
</ProjectConfiguration>
8+
</ItemGroup>
9+
<ItemGroup>
10+
<ClCompile Include="main.cpp" />
11+
<ClCompile Include="script.cpp" />
12+
<ClCompile Include="utils.cpp" />
13+
</ItemGroup>
14+
<ItemGroup>
15+
<ClInclude Include="..\..\inc\main.h" />
16+
<ClInclude Include="..\..\inc\enums.h" />
17+
<ClInclude Include="..\..\inc\natives.h" />
18+
<ClInclude Include="..\..\inc\types.h" />
19+
<ClInclude Include="script.h" />
20+
<ClInclude Include="utils.h" />
21+
</ItemGroup>
22+
<ItemGroup>
23+
<None Include="CustomCameraVPlus.ini" />
24+
</ItemGroup>
25+
<ItemGroup>
26+
<Text Include="Install.txt" />
27+
</ItemGroup>
28+
<PropertyGroup Label="Globals">
29+
<ProjectGuid>{8D82F34A-1D64-465B-84B1-37F89AD3D20B}</ProjectGuid>
30+
<Keyword>Win32Proj</Keyword>
31+
<RootNamespace>CustomCameraVPlus</RootNamespace>
32+
<ProjectName>CustomCameraVPlus</ProjectName>
33+
</PropertyGroup>
34+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
36+
<ConfigurationType>DynamicLibrary</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v141</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>MultiByte</CharacterSet>
41+
</PropertyGroup>
42+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
43+
<ImportGroup Label="ExtensionSettings">
44+
</ImportGroup>
45+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
46+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
47+
</ImportGroup>
48+
<PropertyGroup Label="UserMacros" />
49+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
50+
<LinkIncremental>false</LinkIncremental>
51+
<TargetExt>.asi</TargetExt>
52+
<OutDir>bin\$(Configuration)\</OutDir>
53+
<IntDir>tmp\$(Configuration)\</IntDir>
54+
</PropertyGroup>
55+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
56+
<ClCompile>
57+
<WarningLevel>Level3</WarningLevel>
58+
<PrecompiledHeader>
59+
</PrecompiledHeader>
60+
<Optimization>MaxSpeed</Optimization>
61+
<FunctionLevelLinking>true</FunctionLevelLinking>
62+
<IntrinsicFunctions>true</IntrinsicFunctions>
63+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;NativeSpeedo_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
64+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
65+
<FloatingPointModel>Fast</FloatingPointModel>
66+
</ClCompile>
67+
<Link>
68+
<SubSystem>Windows</SubSystem>
69+
<GenerateDebugInformation>false</GenerateDebugInformation>
70+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
71+
<OptimizeReferences>true</OptimizeReferences>
72+
<AdditionalOptions>..\..\lib\ScriptHookV.lib %(AdditionalOptions)</AdditionalOptions>
73+
<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>
74+
</Link>
75+
<PostBuildEvent>
76+
<Command>copy "$(TargetPath)" "E:\SteamLibrary\steamapps\common\Grand Theft Auto V\$(ProjectName).asi"</Command>
77+
</PostBuildEvent>
78+
</ItemDefinitionGroup>
79+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
80+
<ImportGroup Label="ExtensionTargets">
81+
</ImportGroup>
82+
</Project>

Install.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Usage:
1313
* Enter on any vehicle (except boat, helis and planes) and custom camera will be automatically enabled
1414
* Look around, aim and shoot just like with the built-in camera.
1515
* Switch between 3rd and 1st person view by pressing V (or other key mapped to switch views)
16+
* Look left by pressing B, look right by pressing N
1617
* Look behind by pressing C (or other key mapped to look behind)
1718
* Toggle mod enabled by pressing 1.
1819
* Reload ini settings by pressing F10.
20+
21+
* Lots of settings are configurable (check CustomCameraVPlus.ini)

changelog.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
1.0:
3+
4+
* Reworked 3rd person camera algorithm (completely rewritten)
5+
* 3rd person camera rotation doesn't get affected by suspension bounciness
6+
* Look around/aim/shoot has been reimplemented and now supports gamepad as well as keyboard
7+
* Progressive deadzone implemented when looking with gamepad, for better aim precision
8+
* Look left/right quickly by pressing hotkeys (configurable via ini file)
9+
* Support to look left/right/back from steering wheel!
10+
Requires an AppVeyor build of Manual Transmission Mod by @ikt (link below):
11+
https://ci.appveyor.com/project/E66666666/gtavmanualtransmission/build/artifacts
12+
13+
* Other minor fixes and improvements

0 commit comments

Comments
 (0)