Call to Arms

Call to Arms

Not enough ratings
Tjdagger's Editor Gems Gun Towers
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
102.203 MB
26 Apr, 2018 @ 1:17am
15 Sep, 2021 @ 3:23pm
8 Change Notes ( view )

Subscribe to download
Tjdagger's Editor Gems Gun Towers

In 1 collection by Tjdagger
Tjdaggers SP & Co-op Experimental Maps & Mission Concepts
22 items
Description
Gun Towers:

This mod is intended for anybody interested in scripting and mapping.

The mod includes two climbable ladders ported from AS2. It also includes a sample map with a bunch of gun towers made from a variety of props in the editor.
Also included is a brief sample map and mission I quickly put together to highlight the Gun Tower gameplay element.

This mod consists of a script that allows enemy units to climb ladders and mount emplacement guns. The script has two varieties. One for a "tall" gun tower, and for a "short" gun tower. They are essentially the same, just the distance checks vary to account for the ladders height difference.

3 triggers govern the process.

1. "checker"
This trigger monitors emplacement guns tagged with "gun_tower_tall" and fires when two conditions are met.

The first looks for "uninhabited" emplacement guns that are not destroyed.
The seconds checks to see if an unmounted, not dead enemy unit is within 50 units distance.

When both conditions are met, a "while" loop fires and individually checks each gun emplacement against the two conditions. The nearest enemies are then commanded to move to the nearest ladder tagged "gt_tower_ladder_tall".

2. "ladder_climb"
This trigger uses two near conditions to monitor the distance relationshps between enemy units and ladders tagged "gt_tower_ladder_tall" as well as the distance between enemy units and emplacements tagged "gun_tower_tall".

Again, when both conditions are met a "While" loop does it's thing and sends enemy units up the ladders to available guns.

3. "mount_gun_t"

The last trigger monitors enemy units proximity to vacant guns and boards the enemy unit onto the guns.

The same happens for "short" gun towers. Just different distance values are monitored.Understanding the distance relationships between the elements is key to building your own fully functioning gun towers on your own maps.

Activate the Mod....

**Open the "Gun Towers" map and mission in the editor for some random sample gun towers I built.

**Open the "Gun Tower Gorge" mission ingame to experience it all in action.

No other mods required.





3 Comments
Tjdagger  [author] 26 Apr, 2018 @ 3:23pm 
Hi xboxgame4735, I had no luck trying to port them over too. That's why you'll find a few versions of this script in my previous missions. Plus I think this is more flexible in that you can move around on top of gun towers you make in the editor.

But, I did have a brief look. Even had a play in the .mdl file with some of the offset vales. It seems that they want to climb to the gun body, not the top of the ladder.

Also direct control just crashed the editor on the watch towers.

Don't worry, I realise that once the game is released and updates settle down, we'll have a better chance at getting these things in order.
bitgamer 26 Apr, 2018 @ 8:08am 
Tjdagger there are two watch tower in men of war 2 ..construction/entourage/watch_tower_1 & 2...problem is soldier cant climb ladder...i manage to get work on my mow2 mod but its not perfect...what could be the problem?
ThomasK913 26 Apr, 2018 @ 7:33am 
nice