#1 05-09-2009 08:39

_Luft_
Registered: 01-06-2009
Posts: 25

How i can make laser targeting on sniper rifle?

Sorry for my english
I need create laser targeting for sniper rifle. How calculate target wiev and  point of target view coordinates on a ground, walls, vehicles etc?

Use only english in this forum, please

Last edited by _Luft_ (05-09-2009 08:42)

Offline

#2 10-09-2009 14:40

Devan_LT
Registered: 29-08-2007
Posts: 21

Re: How i can make laser targeting on sniper rifle?

Use these opcodes:

068D: get_camera_position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 
068D: get_camera_position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 
06BD:   no_obstacles_between 67@ 68@ 69@ and 287@ 288@ 289@ solid 1 car 0 actor 0 object 0 particle 0

And you'll need to make a cycle that tests collision between points in different distance.

Offline

Board footer

Powered by FluxBB