Jump to content
Sign in to follow this  
nuxil

Tv guided System

Recommended Posts

Quote[/b] ]

maybe you are interested in this: Spike - Anti-Armour Missile System

Thats some really nice findings.. i like that..

it needs to be scripted tounge2.gif

the helicopter is kinda works like this if you have a gunner with you.. same on planes.

on the aircraft i can add a action menu to activate the "spike" if your a single pilot. which can reactivate it later."turns on camera control". if the missile isnt dead by that time..

im gonna try make a infantery | vehicle "car" with spike

Share this post


Link to post
Share on other sites

hey nuxil smile_o.gif

sorry for the late feedback. confused_o.gif

Very nice one mate. thumbs-up.gif

Rocket flies nicely and excellent interface and options!

I was wondering if you really need that high frequency

in the main tracking loop?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">while {(alive _missile) && dialog} do

{

//code

sleep 0.001;

};

Do you need through the vector.sqf three times if the mouse

cursor is too far off?

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> if (_mx < 0.490) then

if (_mx < 0.450) then

if (_mx < 0.375) then

if (_mx > 0.510) then

if (_mx > 0.550) then

if (_mx > 0.625) then

if (_my < 0.485) then

if (_my < 0.375) then

if (_my > 0.515) then

if (_my > 0.625) then

if (_my > 0.720) then

Do you see other ways to optimize it to less then FPS hit?

Again very nice work indeed. notworthy.gif

Share this post


Link to post
Share on other sites

hi Q.

sleep 0.001;

if i use a lower sleep value. the missile pitch up|down looks horrible. the movement is not smooth at all then

i'll see if i can lower it too 0.01 instead

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

if (_mx < 0.490) then

if (_mx < 0.450) then

if (_mx < 0.375) then

this is how sencetive the missile|bomb is in turning,

if there was only one level of control to each side "right|left" it would be uncontroleble.

using

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

if ((_mx < 0.490) && (_mx > 0.449))then

so on

seams to reduce fps even more

if you used the script version.. you can adjust the arrays to a lower number to get less stearing. thats all in the readme!

i know this reduced fps.. when im in center i get about 65-70 fps

but more to the sides i go the less fps i get.. all the way down to 30.

i tried many diffrent solutions.. but this if blocks seams to be the fastest way. without getting to much fps drop.. but im trying to find a better way to do this..

Share this post


Link to post
Share on other sites

thanks the the response nuxil!

One more idea - would it possible to split the calc in two or more threads?

Like the camera interference aspect probably does not need that

high frequency?

Share this post


Link to post
Share on other sites
Quote[/b] ]

One more idea - would it possible to split the calc in two or more threads?

Man do you read my mind tounge2.gif

i was thinking of doing that wink_o.gif

Share this post


Link to post
Share on other sites

i updated the script a bit

you can get the file from

http://rapidshare.de/files/40388307/tvs_v1.2.rar.html

-reduced some fps drop: vector.sqf is only called once as it should be.

-added higher fallspeed of ammo: forceing the ammo down a bit.

-made the mousecontrol area gray instead of green

the addon will be updated later

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×