Skip to content

Releases: TIMONz1535/map_logic_controller

Workshop Release v3.0

03 Jul 20:46

Choose a tag to compare

Breaking changes

  • Console command map_logic_reset renamed to map_logic_reload.
  • Output callback arguments now is (ent, activator, caller, value) instead of (ent, activator, value). You need to check the last argument.

New features

  • Added methods Entity.AddOutput Entity.RemoveOutput Entity.GetOutputs with delay and max times to fire support.
  • The controller is respawned by PostCleanupMap.
  • Added helper function controller:TimerCreate similarly controller:TimerSimple. This repeats the behavior and arguments from the timer library, but checks the validity of the controller before callback.
  • controller:GetMetaTarget(name|ent|entities) now accepts a list of entities. For example controller:GetMetaTarget(ents.FindByName("cave_antlion*")).
  • Added method MetaTarget:IsValid() that returns true if at least one nested entity is valid and the controller is valid. This allows you some cases such as SafeRemoveEntity(target) and IsValid(target). However, calling target:Remove() actually also checks the validity, and will not cause an error.

Fixes

  • Improve the controller design imperfection. Now you can create any output for any entity, even those that incorrectly set the activator and caller values in engine. For example, you can now use OnLockedUse on func_door.
  • Fixed a script error when creating a MetaTarget after OnMapLogicInitialized by passing the entity directly.

Workshop Release v2.0

24 Sep 14:04

Choose a tag to compare

The major refactored version for the Workshop. This is still compatible with old scripts, but their functions need to be placed inside the hook.

Internal Release v1.0

24 Sep 14:00

Choose a tag to compare

The vanilla version with some hard-coding that has been used on the my server since 31 December 2019 - the rp_pb_industrial17_v2 map release. Still working.