In next hours I'll try to setup a small speech using Translations, trying to explain the settings required to be done correctly in the case of TrapSpringer actor. I could see a nominated and sampled as great or such best map by community, but it was WRONG set over there. TrapSpringer used was a guess work heading nowhere as long as this actor with bad setup is self removed - you won't find it in map anymore during run-time.
Stock map DM-Pressure IS NOT A SAMPLE - don't follow that thing because that's a dumb thing done by Epic's league. BotPack coming later in their patches was auto-hacking TrapSpringer or else that map would never work as intended - speaking about Bots trapping player. By any matter you can look at Script for this class and figure what does it do as long as UScript is more an english thing than a programming thing.
TrapSpringer - explanations and use.
TrapSpringer aims to attract artificial intelligence aka Bot to a point where the destruction of an enemy based on a trap is initiated other way than the direct use of the equipped weapon or its indirect use. TrapSpringer is found in the Inventory subclasses by browsing actors classes. This actor needs for the correct functioning the usage of two parameters representing a name used as a Tag by other actors participating in the above-mentioned trap.
TrapTag is first name that needs to be configured for this TrapSpringer.
TrapTag will be found as a Tag in an actor that is destructive to the enemy. This actor as a direct trap can be:
- A zone aka ZoneInfo sub-classes - killing zones when are triggered;
- a Mover that must be the floor for the victim - exactly, this mover is the floor itself;
- a Trigger that does any kind of effect or that doesn't do much.
TriggerTag is the second requirement for configuration of TrapSpringer.
Usually this Trigger is placed right next to TrapSpringer to be touched by the player activating the trap - Bot or Man. It is delegated to the Event that causes the indirect elimination of the enemy.
In other hand, TrapSpringer itself can cause an event when it is touched which can make it even more useful causing various effects. Whether or not we use this Internal Event, we MUST have TriggerTag configured because otherwise this actor will not work properly, it usually self-destructs when something is wrong.
Anyone who understands English from UScript realizes what's going on below. If not, we use an English to English translation to be more explicit as possible.
Code: Select all
if ( (TrapTag == '') || (TriggerTag == '') )
By adding these actors without completing fields properly, nothing major happens at A.I. Level.
How does it work ?
The bot has a special interest in all sorts of things by calculating the desire for them. At the time of this calculation, TrapSpringer checks to see if anyone is trapped. If there is and we have a Bot at a distance of less than 1600 UU, the desire becomes stronger to come to this TrapSpringer and which causes major damage to the one who is trapped, operated by the involved Trigger or even with the direct participation of the TrapSpringer actor when the Bot is instigating these.