mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-27 04:49:04 +03:00
Updated Prefabs and workarounds obsoleted by Mapbase (markdown)
parent
13fdaafd00
commit
3a23ba617b
@ -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)
|
Loading…
x
Reference in New Issue
Block a user