Jump to content
Sign in to follow this  
motho38

Searchlight

Recommended Posts

Here it is

Its a beta so feel free to comment....

Version 1.0B

I must say i've spend really many hours to figure out how to config this baby!

It's not perfect but I think it can give nice atmospheres to missions and specially WWII ones

Install:

----------

Just put the two .pbo (MTH_spot.pbo and MTH_target.pbo) in your res\addons\ directory.

Content:

---------

You'll find the searchlights under West, East and Resistance in Searchlight (MTH).

Each time you'll find two versions: AI which is best used by AI

The other one is for player

Using (AI) version when your player makes the light randomly scattered.

It is also better not to group the units, use them alone.

Important:

-----------

The searchlight will only work from 5am to 7pm.

Script:

-----------

I've added a scan script for the AI to search for target in specific direction

Just put this line in the init field of the searchlight (AI)

[Name_of_your_searchlight,_azimutinitial,_siteinitial,_azimutmaxleft,_azimutmaxright,_site

anglemaxhigh,_siteangleminlow] exec "\MTH_target\slscan.sqs"

_azimutinitial,_siteinitial values refer to the initial azimut and site you want the unit to point at.

the other 4 values are the limits of the scanning area

all the values in degrees.

Example:

[Name_of_your_searchlight,10,15,-40,60,90,10] exec "\MTH_target\slscan.sqs"

Mission example:

----------------

You'll find searchlightdemo, a basic mission where you'll see a unit tracking a Mi24.

Have fun

Download

Edited by W0lle
Added working link

Share this post


Link to post
Share on other sites

Great work motho38,

Been waiting for something like this since day #1!

Thanks!

/Christer (a.k.a KeyCat)

Share this post


Link to post
Share on other sites

Hi, if you're interested, I own a 60 inch Sperry searchlight if you need any reference shots should you ever want to make a WWII searchlight.

Share this post


Link to post
Share on other sites

what would be interesting would be to be able to mount a searchlight on vehicles... Like how the police here in the US have on the police cars. Would be cool for night missions to drive around in a HMMWV and look for unauthorized personel with it.

Share this post


Link to post
Share on other sites

I remember inquisitor released something that was a hands on tutorial for creating lights like that on vehicles, the only problem is having the animated I would think.. I do agree it would be great to see that.

Share this post


Link to post
Share on other sites

good addon lots of fun i must say

and yes inquisitor released a car with sum lights on it and i agree a humvee or sum other car or boat even would be awesome to play with

about the animation part why not make the gunner use the light and use setpos on the gunners psoition to be in the first cargo position iwth the lgiht on the window or on the top of the car with a bigger light

Share this post


Link to post
Share on other sites

Motho, i've a problem with your addon... i've loaded the demo mission but i can't see on ground the light cone O_o

a pic:

lightsearch_trouble.jpg

I can see the light cone only if i'm the "gunner" and "shoot" from the searchlight sad_o.gif

Share this post


Link to post
Share on other sites

Thanks you all for your nice comments.

@Blackdog: yes I'm interrested in more info and pics on searchlights. The one I made is more or less a german searchlight from wwii, but since i have no blueprints or detailed pics it is not perfect.

@Baz: I think it is absolutly possible to adapt the config for vehicles (specially land or boat, air is more difficult because of speed), this addons is based on a mg.

@Atstwalker: well i'm afraid its a problem with your PC specs. Gloops. sad_o.gif

I'll try to make a lighter version.

If someone else experiences this bug please tell me in this thread.

Share this post


Link to post
Share on other sites

lol awsome smile_o.gif no other comments for that :P

how about colors!! biggrin_o.gifbiggrin_o.gif

Share this post


Link to post
Share on other sites
Great work motho38,

Been waiting for something like this since day #1!

Thanks!

/Christer (a.k.a KeyCat)

Lol, we are saying this about lots of addons, but this is really the addon I've been waiting for since day #1   tounge_o.gif

Great job, motho38!

Can't wait to place a lighter version of this baby in one of those cool mapfact watchtowers smile_o.gif

Share this post


Link to post
Share on other sites
@Atstwalker: well i'm afraid its a problem with your PC specs. Gloops. sad_o.gif

okkei np smile_o.gif tnx a lot motho smile_o.gif

Share this post


Link to post
Share on other sites

Nice Addon smile_o.gif

i have seen that you are creating some light spots randomly around the target.

what about to set an addaction like this?

_vehicle addEventHandler ["Fired",{ [_this select 0, nearestObject[_this select 0, _this select 4] ]exec "fire.sqs" }]

fire.sqs

_shell = _this select 1

"your light points"

Share this post


Link to post
Share on other sites

actually this is the first thing i tried!

however i had some problems with this. It is necessary to destroy the shells or bullets as fast as possible and this means, in the searchlight itself! So there's no shell around or near the target, I only use their initial direction to "propagate" the light. I also wanted to have light all along the beam for land scanning. Thats why the lights are placed ramdomly along the axis creating a small fluttering that u noticed.

But maybe I misunderstood, and if you find some improvement i'll be very glad to put it in this addons smile_o.gif

Share this post


Link to post
Share on other sites

LOL, of course it works from 5pm to 7am biggrin_o.gif

Share this post


Link to post
Share on other sites

really good addon smile_o.gif ...

know someone a good wwII-bomber for ofp? i hear a year ago from a he 111... som1 know somthing?

Share this post


Link to post
Share on other sites

i have it, looks good but i dream from a levelbomber(ju88,he111,b25,a26,b17, lancaster), and a goodlocking pilotescape after flak kick it... a propos txs berlin45 team... good work your addons wink_o.gif

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  

×