Jump to content

[REL]Rear view mirror script for MTA 1.1


Wojak

Recommended Posts

Posted (edited)

You may activate it using the /rearview command, or pressing the "vehicle_look_left" control (“q” key by default) this settings can be changed only in lua file for now

This resource started as a concept script, and it still is one, you’re welcome to use the parts of the code as long you mention me in the credits (this method can be for example used to make a security camera resource, where you can watch multiple places at once)

In order to create the illusion you’re seeing multiple compromises had to be made, so thete is a list of known problems:

- camera is in locked position, you cant manipulate it using mouse nor to change view – fixing this will require to recreating the camera movement handler from scratch, the only way I know to detect the mouse movement is to show the GUI cursor and that may lead to other problems

- fps is lowered by half, in order to have 25 FPS you need 50 fps (it don't effect the game speed though) - inpasible to fix as camera can not be at two places at the same time

- default GTA hud is disabled manually using showPlayerHodComponent as you would not be able to read it properly - inpasible to fix as far i know

- unwanted sound effects (engine sound volume changes rapidly) - inpasible to fix

- problem with nametags and other "3D" created by using dx functions - they are flickering and allocating (illusion of being in two places at the same time) - inpasible to fix (without editing nametages cod, and any other script by that matter)

- I’ve disabled the mirror in planes

Old video:

mtascreen20110916153809.th.jpg

DOWNLOAD:

https://community.multitheftauto.com/index.php?p= ... ls&id=2870

Edited by Guest
Posted

Nice, the latest video seems to have no lag spikes, at least not like the first :P.

Good work, I'll check it out soon.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • MTA Team
Posted

Wojak, i took a look in teh code, how did you achieve doing this O_O

Are you making two screen sources, one for the entire screen, one for mirror, and per frame changing the camera matrix :o

  • 3 weeks later...
  • MTA Team
Posted

Also, Wojak, take a look at the freecam resource, the camera movement works in there without the cursor needing to show ;)

Posted

Innovative! I like the way you make that script.

I also had an idea in my mind, what about adding rear view mirror on bumper view, or say, cockpit view? It's like on most racing games I know. :mrgreen:

XX3 is gone. This is my new name. :3

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...