34 RegisterNetSyncVariableInt(
"m_State");
39 super.OnVariablesSynchronized();
55 if (!
super.OnStoreLoad(
ctx, version))
85 if (!
victim.GetAllowDamage())
99 sound.SetAutodestroy(
true);
159 for (
int att = 0;
att < GetInventory().AttachmentCount();
att++)
196 super.RefreshState();
275#ifdef PLATFORM_WINDOWS
277 override int GetViewIndex()
279 if (MemoryPointExists(
"invView2"))
282 GetInventory().GetCurrentInventoryLocation(
il);
369 return "tripwire_deploy_SoundSet";
374 return "tripwiretrap_deploy_SoundSet";
391 if (GetInventory().AttachmentCount() > 0)
398 for (
int i = 1;
i <= 3;
i++)
399 HideSelection(
"s" +
i +
"_charge");
Param4< int, int, string, int > TSelectableActionInfoWithColor
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
void AddAction(typename actionName)
override void OnVariablesSynchronized()
override void EEItemDetached(EntityAI item, string slot_name)
override void EEItemAttached(EntityAI item, string slot_name)
override void EEKilled(Object killer)
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
override bool IsTakeable()
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
InventoryLocationType
types of Inventory Location
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
string GetDeploySoundset()
void OnInventoryEnter(Man player)
Event called on item when it is placed in the player(Man) inventory, passes the owner as a parameter.
override void SetTakeable(bool pState)
void SetIsPlaceSound(bool is_place_sound)
string GetLoopDeploySoundset()
override void OnItemLocationChanged(EntityAI old_owner, EntityAI new_owner)
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
void OnStoreSave(ParamsWriteContext ctx)
bool OnStoreLoad(ParamsReadContext ctx, int version)
override void EEItemLocationChanged(notnull InventoryLocation oldLoc, notnull InventoryLocation newLoc)
void SetState(bool state)
bool m_ResultOfAdvancedPlacing
static const int TRIGGERED
enum eWireMaterial FOLDED
static const int DEPLOYED
override bool CanDisplayAttachmentSlot(int slot_id)
void SetWireType(int wireType)
override void OnPlacementCancelled(Man player)
vector m_TriggerOrientation
void UpdateProxySelections()
string m_AnimationPhaseTriggered
void DeferredEnableTrigger()
enum SoundTypeTrap SPAWN_FLAGS
string m_AnimationPhaseGrounded
void OnSteppedOn(EntityAI victim)
string m_InfoActivationTime
string m_AnimationPhaseSet
void SetInactive(bool stop_timer=true)
TrapTrigger m_TrapTrigger
void SetupTrapPlayer(PlayerBase player, bool set_position=true)
void StartActivate(PlayerBase player)
void StartDeactivate(PlayerBase player)
class JsonUndergroundAreaTriggerData GetPosition
Wrapper class for managing sound through SEffectManager.
Manager class for managing Effect (EffectParticle, EffectSound)
static EffectSound PlaySound(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
Serialization general interface. Serializer API works with:
void SetParentObject(TrapBase obj)
void SetExtents(vector mins, vector maxs)
Set the size of the Trigger, avoid using SetCollisionBox directly.
proto native CGame GetGame()
const int SAT_DEBUG_ACTION
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
proto native int GetState()
returns one of STATE_...