From 3a23ba617b25e536e9c78d766fef8dccd7f428fb Mon Sep 17 00:00:00 2001 From: Blixibon Date: Sun, 1 Dec 2019 15:50:28 -0600 Subject: [PATCH] Updated Prefabs and workarounds obsoleted by Mapbase (markdown) --- Prefabs-and-workarounds-obsoleted-by-Mapbase.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Prefabs-and-workarounds-obsoleted-by-Mapbase.md b/Prefabs-and-workarounds-obsoleted-by-Mapbase.md index 02d148d..f8f5849 100644 --- a/Prefabs-and-workarounds-obsoleted-by-Mapbase.md +++ b/Prefabs-and-workarounds-obsoleted-by-Mapbase.md @@ -1,10 +1,18 @@ -This article is supposed to list common prefabs and workarounds that have been changed or obsoleted by Mapbase. This article exists to ensure mappers understand how Mapbase changes their workflow and encourage the usage of the new features. - +This article is supposed to list common prefabs and workarounds that have been changed or obsoleted by Mapbase. This article exists to help mappers know about and understand the new features instead of going through existing workarounds. ## AddOutput-related -`AddOutput` is normally used for adding outputs, but it's also capable of setting any keyvalue after the entity has spawned. This is used to change several keyvalues that could not be changed manually by other means after spawning. +`AddOutput` (an existing input) is normally used for adding outputs, but it's also capable of setting any keyvalue after the entity has spawned. This is used to change several keyvalues that could not be changed manually by other means after spawning. Mapbase adds corresponding inputs to some keyvalues, meaning `AddOutput` wouldn't need to be used in those cases anymore, but not every keyvalue has a corresponding input and `AddOutput` should continue to be standard practice. In fact, using `AddOutput` has been made more flexible thanks to the new `logic_format` entity, which allows the key and value to be set independently. +| Entity/Entities | KeyValue | New Input(s) | Details | +|:-------------:|:-------------:|:-------------:|:------------- | +| All Entities | `spawnflags` | AddSpawnFlags, RemoveSpawnFlags | Sets an entity's spawnflags. | +| All Entities | `rendermode` | SetRenderMode | Sets an entity's render mode. | +| All Entities | `renderfx` | SetRenderFX | Sets an entity's render FX. | +| All Entities | `effects` | AddEffects, RemoveEffects | Sets an entity's effect flags. | +| npc_combine_s | `numgrenades` | SetGrenades, AddGrenades | Sets a soldier's number of grenades. | +| npc_combine_s | `tacticalvariant` | SetTacticalVariant | Sets a soldier's tactical variant. | + (todo) \ No newline at end of file