Jump to content

showAim function - aiming (crosshair)


dukenukem

Recommended Posts

Posted

Hi everybody. I have got suggestion to make showAim function, this is great idea i think, then we can make full cool first person shooting, i have got first person camera but i haven't got function to make showAim when you turn on first person and then we can aiming in first person mode. Now i can only run and i cant aim.

Greetz, dukenukem.

Posted

I think I wrote clearly enough: it's not directly possible, but with a little improvement of MTA that could be done. However, you can make the script imitate shooting, for example, make the player perform shooting animation and create DX 3D lines which represent shots. Another way would be creating a ped, setting its control states to those of the player and putting player camera in the position where the head is. setPedAimTarget could be used on that ped and crosshair could be drawn with drawing functions.

Posted

Script it. This isn't something that really depends on the core of MTA, so just script it.

And I don't get exactly what you want. Do you want ADS ( Aim Down the Sights )? Or do you want to trigger the crosshair?

If you want the ADS, just place the cam correctly and use the correct animations. Shouldn't be too hard.

If you want the crosshair, use setControlState.

Posted (edited)

crosshair aiming when shooting in first person camera i dont want "imitate" "anims" i want real aiming ...

and i think , setControlState is for cars

Edited by Guest
Posted

Dude, click it. It's not only for cars. Why would I quote myself if it wasn't?

Sets a state of a specified player's control, as if they pressed or released it.

Posted

Alpha stages = MTA:DM DP. The MTA versions after MTA Race, and before MTA:SA 1.0. MTA 1.1 is called nightly, and that's something really, really different.

Posted
Alpha stages = MTA:DM DP. The MTA versions after MTA Race, and before MTA:SA 1.0. MTA 1.1 is called nightly, and that's something really, really different.

ah... okay.

Posted
there is one fps server already - so it's obviously possible

what server? i must see it.

it was 6 months ago, and i was there only once. it (server) sucked anyway - but had working good fps mode. can't remember the name. sorry.

  • Recently Browsing   0 members

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