Extended Vertical Aiming

[V] IdolNinja

Volition Staff
Extended Vertical Aiming for Saints Row IV by IdolNinja

This mod simply extends the vertical range limits of camera so you can aim and shoot directly below or above.


INSTALL INSTRUCTIONS:

Extract camera_free.xtbl to your SRIV install folder with the game exe:
..\steam\SteamApps\common\Saints Row IV\



FOR OTHER MODDERS:

Feel free to to integrate this into any of your mod releases like the FOV ones as long as you link back to this release thread with proper credit. The changes to make are simple. Edit camera_free.xtbl and make two changes to each of the listed submodes:
<min_elevation> changed to -90
<max_elevation> changed to 90

Submode list (they are all at the start of the table)
exterior close
crouch
platforming crouch
sprint
interior close
crouch interior
interior sprint
fine aim
fine aim
fine aim underslung
fine aim underslung
fine aim crouch
fine aim crouch

EXAMPLE:

Before

Code:
       <submode>
         <name>exterior close</name>
         <lookat_offset>
           <X>0.0</X>
           <Y>1.65</Y>
           <Z>0.0</Z>
           </lookat_offset>
         <min_elevation>-75</min_elevation>
         <max_elevation>55</max_elevation>
         <base_fov>50</base_fov>
         <z_dist>4.25</z_dist>
         <y_dist>0.05</y_dist>
         <blend_time>0.5</blend_time>
         <x_shift>0.6</x_shift>
         <override_exit_blend_time>False</override_exit_blend_time>
         <Aspect>all</Aspect>
         <vel_scale>
           <X>0.0</X>
           <Y>0.0</Y>
           <Z>0.2</Z>
           </vel_scale>
         <vel_max>
           <X>5</X>
           <Y>0.0</Y>
           <Z>5</Z>
           </vel_max>
         <vel_approach_speed>0.6</vel_approach_speed>
         <vel_min>
           <X>-5</X>
           <Y>0.0</Y>
           <Z>-5</Z>
           </vel_min>
         <vel_burst_time>0.0</vel_burst_time>
         <vel_burst_power>0.0</vel_burst_power>
         <swing_heading>0.0</swing_heading>
         <swing_sticky_time>1000</swing_sticky_time>
         <swing_vel_low>0.0</swing_vel_low>
         <swing_vel_high>0.0</swing_vel_high>
         </submode>

After
Code:
       <submode>
         <name>exterior close</name>
         <lookat_offset>
           <X>0.0</X>
           <Y>1.65</Y>
           <Z>0.0</Z>
           </lookat_offset>
         <min_elevation>-90</min_elevation>
         <max_elevation>90</max_elevation>
         <base_fov>50</base_fov>
         <z_dist>4.25</z_dist>
         <y_dist>0.05</y_dist>
         <blend_time>0.5</blend_time>
         <x_shift>0.6</x_shift>
         <override_exit_blend_time>False</override_exit_blend_time>
         <Aspect>all</Aspect>
         <vel_scale>
           <X>0.0</X>
           <Y>0.0</Y>
           <Z>0.2</Z>
           </vel_scale>
         <vel_max>
           <X>5</X>
           <Y>0.0</Y>
           <Z>5</Z>
           </vel_max>
         <vel_approach_speed>0.6</vel_approach_speed>
         <vel_min>
           <X>-5</X>
           <Y>0.0</Y>
           <Z>-5</Z>
           </vel_min>
         <vel_burst_time>0.0</vel_burst_time>
         <vel_burst_power>0.0</vel_burst_power>
         <swing_heading>0.0</swing_heading>
         <swing_sticky_time>1000</swing_sticky_time>
         <swing_vel_low>0.0</swing_vel_low>
         <swing_vel_high>0.0</swing_vel_high>
         </submode>
 

Attachments

  • SR4_extended_vertical_aiming_IdolNinja.rar
    12 KB · Views: 2,689
Does this apply to the Death From Above, too? It really bugs me that you can't attack on enemies directly above you :L
 
Does this apply to the Death From Above, too? It really bugs me that you can't attack on enemies directly above you :L

I don't think so, but you may be able to look through the submodes and apply those particular settings to them.
 
I don't think so, but you may be able to look through the submodes and apply those particular settings to them.
I have absolutely no idea how to do that, so I'll try it out, and if it doesn't, I'll just hope someone else with legitimate skills has the same question, and does it their self :p
 
That would be great for the DFA to have these settings and be able to fly across the map like Neo in Matrix ( It's the same animation .. another reference to the movie I guess)
But the character can't target the ground when it's too far, is there a way to do it ?
 
<submode>
<name>death from above</name>
<Aspect>all</Aspect>
<lookat_offset>
<X>0.0</X>
<Y>1.65</Y>
<Z>0.0</Z>
</lookat_offset>
<min_elevation>35</min_elevation>
<max_elevation>80</max_elevation>
<base_fov>50</base_fov>


Wouldnt that be where you would do it? I am no expert, and I am currently trying it out, but I would suspect that setting min_elevation to 0 would do it.
 
Well, I have messed around with it a little bit.. still far from perfect, and you cannot aim upwards, or even flat, due to the distance from the player to the ground/whatever, but I do believe the range of where you can aim is greatly increased with this bit of code:

Code:
            <submode>
                <name>death from above</name>
                <Aspect>all</Aspect>
                <lookat_offset>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </lookat_offset>
                <min_elevation>0</min_elevation>
                <max_elevation>85</max_elevation>
                <base_fov>50</base_fov>
                <z_dist>4.25</z_dist>
                <y_dist>0.05</y_dist>
                <blend_time>0.5</blend_time>
                <override_exit_blend_time>False</override_exit_blend_time>
                <x_shift>0.6</x_shift>
                <vel_scale>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </vel_scale>
                <vel_max>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </vel_max>
                <vel_approach_speed>0.0</vel_approach_speed>
                <vel_min>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </vel_min>
                <vel_burst_time>0.0</vel_burst_time>
                <vel_burst_power>0.0</vel_burst_power>
                <swing_heading>0.0</swing_heading>
                <swing_sticky_time>1000</swing_sticky_time>
                <swing_vel_low>0.0</swing_vel_low>
                <swing_vel_high>0.0</swing_vel_high>
                </submode>
            <submode>
                <name>death from above attack</name>
                <Aspect>all</Aspect>
                <lookat_offset>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </lookat_offset>
                <min_elevation>-0</min_elevation>
                <max_elevation>85</max_elevation>
                <base_fov>90</base_fov>
                <z_dist>6.5</z_dist>
                <y_dist>0.05</y_dist>
                <blend_time>0.5</blend_time>
                <override_exit_blend_time>False</override_exit_blend_time>
                <x_shift>0.6</x_shift>
                <vel_scale>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </vel_scale>
                <vel_max>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </vel_max>
                <vel_approach_speed>0.0</vel_approach_speed>
                <vel_min>
                    <X>0.0</X>
                    <Y>0.0</Y>
                    <Z>0.0</Z>
                    </vel_min>
                <vel_burst_time>0.0</vel_burst_time>
                <vel_burst_power>0.0</vel_burst_power>
                <swing_heading>0.0</swing_heading>
                <swing_sticky_time>1000</swing_sticky_time>
                <swing_vel_low>0.0</swing_vel_low>
                <swing_vel_high>0.0</swing_vel_high>
                </submode>
            <submode>

And in a little bit of testing, if you DFA into a building, it seems to mess you up.
 
Feel free to attach updated versions here in the thread if you like.
 
Back
Top