parent
3bdb55885c
commit
ae5bb8af7d
92 changed files with 1147 additions and 549 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,11 +1,15 @@ |
|||||||
Scriptname SilverSwordScript extends ObjectReference |
Scriptname SilverSwordScript extends ObjectReference |
||||||
|
;Script modified by USKP 2.0.2. Silver weapon perk does not need to constantly be added or removed in order to function. |
||||||
|
;This also fixes a bug where dual-wielding and then unequipping one silver weapon would remove the perk even if another silver weapon was still equipped. |
||||||
|
|
||||||
Perk Property SilverPerk auto |
Perk Property SilverPerk auto |
||||||
|
|
||||||
Event OnEquipped(Actor akActor) |
Event OnEquipped(Actor akActor) |
||||||
akActor.AddPerk(SilverPerk) |
if( !akActor.HasPerk(SilverPerk) ) |
||||||
|
akActor.AddPerk(SilverPerk) |
||||||
|
EndIf |
||||||
EndEvent |
EndEvent |
||||||
|
|
||||||
Event OnUnEquipped(Actor akActor) |
Event OnUnEquipped(Actor akActor) |
||||||
akActor.RemovePerk(SilverPerk) |
;akActor.RemovePerk(SilverPerk) |
||||||
EndEvent |
EndEvent |
@ -1,81 +1,66 @@ |
|||||||
scriptName Tripwire extends TrapTriggerBase |
scriptName Tripwire extends TrapTriggerBase |
||||||
; |
|
||||||
; |
|
||||||
; |
|
||||||
;================================================================ |
|
||||||
; event onActivate(objectReference akActivator) |
|
||||||
; if (akActivator as actor) && akActivator != (self as objectReference) |
|
||||||
; goToState("Active") |
|
||||||
; endif |
|
||||||
; endEvent |
|
||||||
|
|
||||||
|
|
||||||
State Active |
State Active |
||||||
|
|
||||||
Event OnBeginState() |
Event OnBeginState() |
||||||
SetMotionType(1) |
SetMotionType (1) |
||||||
TriggerSound.play( self as ObjectReference) ;play trigger sound |
TriggerSound.play (Self as ObjectReference) |
||||||
self.blockActivation(false) |
Self.blockActivation (False) |
||||||
activate(self as objectReference) |
Activate (Self as ObjectReference) |
||||||
self.blockActivation(true) |
Self.blockActivation (True) |
||||||
PlayAnimation("Trigger") |
PlayAnimation ("Trigger") |
||||||
goToState("DoNothing") |
GoToState ("DoNothing") |
||||||
;applyHavokImpulse 15 0 0 -1 ;push down at a force of 15 to break the havok constraint. |
EndEvent |
||||||
|
|
||||||
endEvent |
|
||||||
|
|
||||||
event onActivate(objectReference akActivator) |
|
||||||
endEvent |
|
||||||
|
|
||||||
event OnTriggerEnter( objectReference triggerRef ) |
|
||||||
endEvent |
|
||||||
|
|
||||||
event OnTriggerLeave( objectReference triggerRef ) |
Event OnHit (ObjectReference akAggressor, Form akSource, Projectile akProjectile, Bool abPowerAttack, Bool abSneakAttack, Bool abBashAttack, Bool abHitBlocked) |
||||||
endEvent |
EndEvent |
||||||
|
|
||||||
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) |
|
||||||
endEvent |
|
||||||
endState |
|
||||||
|
|
||||||
State DoNothing ;Dummy state, don't do anything if animating |
EndState |
||||||
event onBeginState() |
|
||||||
setDestroyed(true) |
State DoNothing |
||||||
endEvent |
|
||||||
|
Event OnBeginState() |
||||||
|
SetDestroyed (True) |
||||||
|
EndEvent |
||||||
|
|
||||||
|
Event OnLoad() |
||||||
|
EndEvent |
||||||
|
|
||||||
event OnTriggerEnter( objectReference triggerRef ) |
|
||||||
endEvent |
|
||||||
|
|
||||||
event OnTriggerLeave( objectReference triggerRef ) |
|
||||||
endEvent |
|
||||||
|
|
||||||
event onCellAttach() |
|
||||||
endEvent |
|
||||||
EndState |
EndState |
||||||
|
|
||||||
Event OnCellAttach() |
Event OnLoad() |
||||||
|
|
||||||
SetMotionType(4) |
SetMotionType(4) |
||||||
|
|
||||||
EndEvent |
EndEvent |
||||||
|
|
||||||
;/ |
;/ |
||||||
Event OnCellDetach() |
Event OnCellDetach() |
||||||
|
|
||||||
SetMotionType(1) |
SetMotionType(1) |
||||||
|
|
||||||
EndEvent |
EndEvent |
||||||
/; |
/; |
||||||
|
|
||||||
function localActivateFunction() |
Function LocalActivateFunction() |
||||||
goToState("Active") |
|
||||||
endFunction |
|
||||||
|
|
||||||
Event onReset() |
GoToState ("Active") |
||||||
self.reset() |
|
||||||
SetMotionType(4) |
EndFunction |
||||||
self.clearDestruction() |
|
||||||
self.setDestroyed(False) |
Event OnReset() |
||||||
goToState("Inactive") |
|
||||||
|
Self.Reset() |
||||||
|
;SetMotionType (4) - USKP 2.0.1: Can't do this here, needs to rely on the OnLoad event above. |
||||||
|
Self.ClearDestruction() |
||||||
|
Self.SetDestroyed (False) |
||||||
|
GoToState ("Inactive") |
||||||
CountUsed = 0 |
CountUsed = 0 |
||||||
endEvent |
|
||||||
|
EndEvent |
||||||
|
|
||||||
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) |
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) |
||||||
; ;debug.Trace(self + ": was hit by " + akAggressor + " with " + akSource + " or " + akProjectile) |
GoToState ("Active") |
||||||
goToState("Active") |
EndEvent |
||||||
endEvent |
|
||||||
|
|
||||||
|
Loading…
Reference in new issue