Weapon Scripting Overhaul
Weapons are now monolithic behaviors Various new weapon behavior types implemented All weapons have optional magazine and reload mechanic Visibility now decays globally
This commit is contained in:
parent
48abee4847
commit
357f9db329
95 changed files with 2571 additions and 754 deletions
|
|
@ -16,7 +16,7 @@ public class TriggerData : BehaviorData
|
|||
}
|
||||
}
|
||||
|
||||
public class Trigger : IBehavior
|
||||
public class Trigger : IBehavior, IActivatedBehavior
|
||||
{
|
||||
private TriggerData _data;
|
||||
|
||||
|
|
@ -28,11 +28,6 @@ public class Trigger : IBehavior
|
|||
|
||||
public bool _pulled;
|
||||
|
||||
public void Pull()
|
||||
{
|
||||
_pulled = true;
|
||||
}
|
||||
|
||||
public Trigger(ItemManager context, TriggerData data, Entity entity, EquippedItem item)
|
||||
{
|
||||
_data = data;
|
||||
|
|
@ -55,4 +50,13 @@ public class Trigger : IBehavior
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
_pulled = true;
|
||||
}
|
||||
|
||||
public void Deactivate()
|
||||
{
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue