• There seems to be an up tick in Political commentary in recent months. Those of us who are long time members of the site we know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religiours commentary out of the fourms.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politicion will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment amoung members. It is a poison to the community. We apprciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

'guns' firing vertically only

mongoose

SOH-CM-2025
I can't remember if this was discussed before; I feel it was but can't find any references. I would like to know how to set a 'gun'; in fact for searchlight and sound 'guns'; to fire vertically only. Any ideas? Judging by my last couple of posts we are a bit lacking in experts in this area!:wiggle:
 
Ok

You need a vehicle and in the xpd (say from the search lights you have this

<GunStations>
<GunStation UpLimit="90" DownLimit="90" LeftLimit="180" RightLimit="180" RateLimit="20" SystemID="engine_one" Tracer="0" Trainable="1" Trigger="0" Type="searchlight_blue" usesmallflash="1" Name="searchlight_blue" ConvergeDistance="0" Pitch="0" MaxAmmo="1000"/>
</GunStations>

change it to:

<GunStations>
<GunStation UpLimit="90" DownLimit="0" LeftLimit="0" RightLimit="0" RateLimit="20" SystemID="engine_one" Tracer="0" Trainable="1" Trigger="0" Type="searchlight_blue" usesmallflash="1" Name="searchlight_blue" ConvergeDistance="0" Pitch="0" MaxAmmo="1000"/>
</GunStations>


I placed in red bold the relevant section. This way the light points straight up and won't move. The only problem with this is that the gun will only fire when the target is directly above literally. So if you want some flexibility you may need to put some values in the down and left/right say maybe 5 so the gun will move 5 degrees off the vertical and left right at 180. This way it will fire in a cone that has a five degree width, so maybe:

<GunStations>
<GunStation UpLimit="90" DownLimit="5" LeftLimit="180" RightLimit="180" RateLimit="20" SystemID="engine_one" Tracer="0" Trainable="1" Trigger="0" Type="searchlight_blue" usesmallflash="1" Name="searchlight_blue" ConvergeDistance="0" Pitch="0" MaxAmmo="1000"/>
</GunStations>
 
You need a vehicle and in the xpd (say from the search lights you have this

<GunStations>
<GunStation UpLimit="90" DownLimit="90" LeftLimit="180" RightLimit="180" RateLimit="20" SystemID="engine_one" Tracer="0" Trainable="1" Trigger="0" Type="searchlight_blue" usesmallflash="1" Name="searchlight_blue" ConvergeDistance="0" Pitch="0" MaxAmmo="1000"/>
</GunStations>

change it to:

<GunStations>
<GunStation UpLimit="90" DownLimit="0" LeftLimit="0" RightLimit="0" RateLimit="20" SystemID="engine_one" Tracer="0" Trainable="1" Trigger="0" Type="searchlight_blue" usesmallflash="1" Name="searchlight_blue" ConvergeDistance="0" Pitch="0" MaxAmmo="1000"/>
</GunStations>


I placed in red bold the relevant section. This way the light points straight up and won't move. The only problem with this is that the gun will only fire when the target is directly above literally. So if you want some flexibility you may need to put some values in the down and left/right say maybe 5 so the gun will move 5 degrees off the vertical and left right at 180. This way it will fire in a cone that has a five degree width, so maybe:

<GunStations>
<GunStation UpLimit="90" DownLimit="5" LeftLimit="180" RightLimit="180" RateLimit="20" SystemID="engine_one" Tracer="0" Trainable="1" Trigger="0" Type="searchlight_blue" usesmallflash="1" Name="searchlight_blue" ConvergeDistance="0" Pitch="0" MaxAmmo="1000"/>
</GunStations>



Thanks Ted. I give that a trial.
 
That's interesting, I just kind of assumed that the downlimit was an actual reading. Eg downlimit="85" to keep the gun from panning below 85 degrees.
 
Back
Top