Quantcast
Channel: Recent Discussions — Unknown Worlds Forums
Viewing all articles
Browse latest Browse all 42799

ExtraEntitiesMod

$
0
0
Introduction

I will make a small mod to bring some extra entites to NS2, like a teleport-trigger, a drivable train etc.
(the entites from hl1 that made you making some cool fun maps). I also included some npcs you can use for co-op maps etc.

Mappers can use them then in their maps to create something different.
The Mod will be called ExtraEntitesMod and if it's finished I will upload it to workshop.
Will also include all the entites to the CombatMod.

Entities worked on
(look at the bottom at the post to see all entites, will only write here entities that i'm currently working on)
• logic_power_point_listener (triggers when power in room changes)

Where can I get the mod?

If you want to get the mod, test the entities or use it on your mods (I will wrote a tutorial for that)
you can download the mod "ExtraEntitiesMod" in the workshop, Id is "66f9c57"

You can find the code here at GitHub:
https://github.com/JimWest/ExtraEntitesMod


How to use the entities?

To select the entitys, you have to set a diferent game in the Launch-Pad. To do that, best is to download the mod (EEM) from GitHub directly into your Ns2 folder (steamapps\common\natural selection 2\ExtraEntitesMod). To Setup the launchpad, use my setup_launchpad.vbs.


Only use one unique name for every entity, don't name 2 entities the same, this will cause some bugs cause the engine will only find one entity and the other will be ignored. You will need to set names to every entities that should get triggered by other entities (the engine will then find the entity inGame).

_________________________________________________________
Teleporters, trains etc:
_________________________________________________________

Teleport-Trigger
• The cone will show you the direction of the teleporter output, it will rotate, too, when you rotate the whole trigger.
• If its not only a exit (used in both directions), you need to set a name and a destination Name (name of the exit teleporter). Do the same for the 2nd teleporter (permute the names).
• The wait delay in sec let the teleporter ignore the player for that time, till he will teleport him again (2 sec is a good value, you don't have to change it).
• You can disable the trigger via trigger enabled - false, it will only teleport players when a logic entity (like a timer) triggered the teleporter.
• You can set the teleporter to marine or alien team only, default is for both teams (not on the screen, option called Team Number).
• Just ignore the Distance and Angles, thats just to show the cone in the Editor

Push_Trigger
• The cone will show you the direction of the pushforce. It will rotate, too, when you rotate the whole trigger.
• You can set the Push force, but the default 30 is a good value to start testing.
• You can disable the trigger via trigger enabled - false, it will only push players when a logic entity (like a timer) triggered the push_trigger.
• Just ignore the Distance and Angles, thats just to show the cone in the Editor

Gravity_Trigger
• Lets you change the gravity inside this trigger for every player which is inside
• You can set higher or lower gravity (0 will be no gravity, -50 higher etc., +10 would work a bit like a push trigger. Allowed are values form -100 to 100)

Func_Door
• Starts open let the door start unlocked (it will work like a normal door, but can be triggered and can be disabled)
• Stay open lets the door stay open when unlocked, but will close when locked (but no open/close all the time)

Func_Moveable
• You can set any model you like (most models are invisible at the background, but you can just put the same model 180° rotate behind it and link them with the logic_multiplier)
• You can scale the model as you like.
• Place the model at its "finished" position, when you set Starts opened to false, it will start there in the game, too. If you let it true, the model will start above or under the vent so the vent is opened and will be closed after triggering.
• Direction: currently you can only set Up, Down, Left, Right and a waypoint (use a train_waypoint for this)

Func_Platform
• Works like an elevator, needs 2 func_train_waypoints (start and end point)
• You can use every model for this

Func_Train
• A drivable train, can turn every model to a train
• Needs a name and refering func_train_waypoints to build a path (also add some numbers to the number entry of the waypoint, like 1 2 3 4 etc.)

Map_Settings
• Rise the view distance if you need to
• you can set fall damage on or off (default off, Lerks, Skulks, JetpackMarines and Fades don't get fall damage)

Map_Change
• Lets you change the map to a specific map after getting triggered (OH yeah this is working!)


_________________________________________________________
Now the Logic entities:
_________________________________________________________

Most logic entities have only one output, but you can use the logic_mutliplier to trigger as many things as you like (for example the timer triggers a multiplier and that triggers 10 doors, or 9 doors, 1 multiplier which then triggers again another entities).

Logic_Breakble
• Destroyable Model, will play a cinematic if distroyed
• You can set Health, material etc

Logic_Button
• Pushable Model (you can set every model to it), will trigger when getting pressed.
• You can set CooldownTime, the team which can trigger it, the amount (once per player, all the time etc.)

Logic_Cinematic
• Let's you play a Cinematic with all logic entities
• NEW: if you have a camera in your cinematic, this will set to every player so its like a cutscene

Logic_Counter
• Counts inputs and then triggers after the value in Counter is reached.

Logic_Emitter
• Emitts on trigger (to call UWE-style entities like sound event and cinematic (not logic_cinematic))

Logic_Emitter_Destoryer
• Can destroy emitted entities like sound and cinematic (when they're playing)

Logic_Event_Listener
• Triggers on special Events like game started, team won etc.

Logic_Function
• With this you can call game functions like Team1 or Team2 has won (good to combine with the Logic_Trigger and the Logic_Counter, you could let players run through a part of the map and if that happened 5 times team 1 or 2 has one...)
• Will add more functions to this you can use ingame

Logic_Give_item
• Gives a specific item to the triggering player (like welder, shotgun, jetpack, even exo etc.)

Logic_Listener
• Listens on UWE-style entities like button_emitter and timed_emitter to trigger my entities

Logic_Lua
• Lets you load your costum lua file.
• set your path of the lua file
You need to copy the lua file for testing into the ExtraEntitiesMod folder (later you can just put it into your map folder under a new lua folder (YourMap\lua\test.lua -> write in the editor lua\test.lua), but that only works if its on workshop and you suscriped to it, so bad for testing).

Logic_Multiplier
• Will give you the opportunity to trigger mutliple things, but the mutliplier always have to be triggered by another logic entity!
• You need to set the name and can name up to 10 outputs to be triggered, you can also trigger another multiplier

Logic_Reset
• Resets entities to their start values (usefully to reset a timer, counter etc)

Logic_Switch
• Works a bit like a multiplier with serveral outputs, but will not fire all outputs at the same time, only one.
• Direction of the next triggered entry can be set to forward, backward and random (start value can also be set to random)

Logic_Timer
• Will start to count after the game has started (when enabled), if its disabled, it will only start counting when another logic entity triggers it.
• You can set wait delay to your disired value, like 120 sec for 2 min etc.

Logic_Trigger
• Triggers the output entity when a player moves through
• Like the button, you can set CooldownTime, the team which can trigger it, the amount (once per player, all the time etc.)
• You can set if it triggeres when an entity enters or exits.

Logic_Waypoint
• Will give a waypoint to the triggering player to the position of this entity
• You can set the type of waypoint like move, weld, attack.

Logic_Weldable
• Will be trigger the output entity when beeing fully welded
• You can disable it so it can only be welded after some time (with a logic_timer etc)
• You can set the weld time at Weld Time in sec, when more player welds its going faster (like you weld a cc etc)

Logic_Worldtooltip
• Let's you print a short message with gui on the screen if player is near and looking at it (like in Explore mod,
but this one works in the normal game, too)

_________________________________________________________
NPC things:
_________________________________________________________

You can set the team of every npc, so it will be friends to team 1 or team 2

npc_wave_manager
• Spawns npcs in waves
• You can set the amount of spawned npcs, the class, how much waves etc.
• If you set wave number to 99, it will trigger all the time until it gets deactivated by another trigger
• Can trigger an output if the wave ends

npc_spawner_marine
• Spawns a marine, you can set the weapon loadout

npc_spawner_marine_exo
• Spawns an Exo marine, you can set the weapon loadout

npc_spawner_skulk
• Spawns a skulk


Viewing all articles
Browse latest Browse all 42799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>