Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .info
- .source "g:\\_F4\\Art\\Raw\\Scripts\\MagazineRackContainerScript.psc"
- .modifyTime 1438802482
- .compileTime 1444072426
- .user "builds"
- .computer "RKVBGSBUILD06"
- .endInfo
- .userFlagsRef
- .flag mandatory 5
- .flag collapsedonref 3
- .flag hidden 0
- .flag conditional 1
- .flag collapsedonbase 4
- .flag default 2
- .endUserFlagsRef
- .objectTable
- .object OCDispenserScript ObjectReference
- .userFlags 1
- .docString ""
- .autoState AllowActivate
- .structTable
- .struct DisplayPerkMagStruct
- .variable PerkMagDisplayRef ObjectReference
- .userFlags 0
- .initialValue None
- .docString "This will hold the currently displayed PerkMag reference."
- .endVariable
- .variable PerkMagDisplayNode String
- .userFlags 0
- .initialValue None
- .docString "The node the PerkMag should be placed at."
- .endVariable
- .endStruct
- .endStructTable
- .variableTable
- .variable ::PerkMagsInContainer_var form[]
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::IsSwivelRack_var Bool
- .userFlags 0
- .initialValue False
- .endVariable
- .variable ::BlockWorkshopInteractionKeyword_var keyword const
- .userFlags 0
- .initialValue None
- .endVariable
- .variable AlreadyLoaded Bool
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::PerkMagKeyword_var keyword const
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::FeaturedItem_var keyword const
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::MagazineRackContainerNotMagazineMessage_var message
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::DisplayPerkMagStructArray_var magazinerackcontainerscript#displayperkmagstruct[]
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::MagazineRackContainerFullMessage_var message
- .userFlags 0
- .initialValue None
- .endVariable
- .variable ::SwivelRackStage_var Int
- .userFlags 0
- .initialValue 1
- .endVariable
- .endVariableTable
- .propertyTable
- .property MagazineRackContainerFullMessage message auto
- .userFlags 0
- .docString ""
- .autoVar ::MagazineRackContainerFullMessage_var
- .endProperty
- .property PerkMagKeyword keyword auto
- .userFlags 0
- .docString ""
- .autoVar ::PerkMagKeyword_var
- .endProperty
- .property FeaturedItem keyword auto
- .userFlags 0
- .docString ""
- .autoVar ::FeaturedItem_var
- .endProperty
- .property IsSwivelRack Bool auto
- .userFlags 0
- .docString ""
- .autoVar ::IsSwivelRack_var
- .endProperty
- .property MagazineRackContainerNotMagazineMessage message auto
- .userFlags 0
- .docString ""
- .autoVar ::MagazineRackContainerNotMagazineMessage_var
- .endProperty
- .property SwivelRackStage Int auto
- .userFlags 0
- .docString ""
- .autoVar ::SwivelRackStage_var
- .endProperty
- .property DisplayPerkMagStructArray magazinerackcontainerscript#displayperkmagstruct[] auto
- .userFlags 0
- .docString "Struct Array of each display bobblehead ref, and the node it should go to."
- .autoVar ::DisplayPerkMagStructArray_var
- .endProperty
- .property BlockWorkshopInteractionKeyword keyword auto
- .userFlags 0
- .docString ""
- .autoVar ::BlockWorkshopInteractionKeyword_var
- .endProperty
- .property PerkMagsInContainer form[] auto
- .userFlags 0
- .docString "Array of current bobblheads that are in the container."
- .autoVar ::PerkMagsInContainer_var
- .endProperty
- .endPropertyTable
- .propertyGroupTable
- .endPropertyGroupTable
- .stateTable
- .state
- .function OnItemAdded
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akBaseItem form
- .param aiItemCount Int
- .param akItemReference ObjectReference
- .param akSourceContainer ObjectReference
- .endParamTable
- .localTable
- .local ::nonevar None
- .local ::temp15 Bool
- .local ::temp16 Int
- .local ::temp17 Int
- .local ::temp18 Bool
- .local ::temp19 actor
- .local ::temp20 ObjectReference
- .local ::temp21 Int
- .endLocalTable
- .code
- COMPAREGT ::temp18 aiItemCount 1 ;@line 78
- JUMPT ::temp18 label0 ;@line 79
- ARRAYADDELEMENTS ::PerkMagsInContainer_var akBaseItem 1 ;@line 80
- IS ::temp18 akBaseItem Weapon ;@line 80
- JUMPT ::temp18 label1 ;@line 81
- IS ::temp18 akBaseItem Armor ;@line 81
- JUMPF ::temp18 label2 ;@line 81
- label1:
- CALLMETHOD Show ::MagazineRackContainerFullMessage_var ::temp21 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 ;@line 89
- label2:
- JUMP label3 ;@line 81
- label0:
- CALLSTATIC game GetPlayer ::temp19 ;@line 88
- CAST ::temp20 ::temp19 ;@line 88
- CALLMETHOD RemoveItem self ::nonevar akBaseItem aiItemCount False ::temp20 ;@line 88
- CALLMETHOD Show ::MagazineRackContainerNotMagazineMessage_var ::temp21 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 ;@line 89
- label3:
- .endCode
- .endFunction
- .function OnWorkshopObjectMoved
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akReference ObjectReference
- .endParamTable
- .localTable
- .endLocalTable
- .code
- .endCode
- .endFunction
- .function OnLoad
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .endParamTable
- .localTable
- .local ::temp0 Bool
- .endLocalTable
- .code
- NOT ::temp0 AlreadyLoaded ;@line 31
- JUMPF ::temp0 label0 ;@line 31
- ASSIGN AlreadyLoaded True ;@line 32
- ARRAYCREATE ::PerkMagsInContainer_var 0 ;@line 33
- JUMP label0 ;@line 33
- label0:
- .endCode
- .endFunction
- .function DoThing
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .endParamTable
- .localTable
- .endLocalTable
- .code
- .endCode
- .endFunction
- .function OnWorkshopObjectGrabbed
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akReference ObjectReference
- .endParamTable
- .localTable
- .endLocalTable
- .code
- .endCode
- .endFunction
- .function DeletePerkMags
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .endParamTable
- .localTable
- .local ::nonevar None
- .local ::temp61 Bool
- .local MaxCount Int
- .local Count Int
- .local ::temp62 magazinerackcontainerscript#displayperkmagstruct
- .local ::temp63 ObjectReference
- .local ::temp74 magazinerackcontainerscript#displayperkmagstruct
- .local ::temp75 ObjectReference
- .endLocalTable
- .code
- JUMP label0 ;@line 162
- label0:
- .endCode
- .endFunction
- .function ::remote_ObjectReference_OnContainerChanged
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akSender ObjectReference
- .param akNewContainer ObjectReference
- .param akOldContainer ObjectReference
- .endParamTable
- .localTable
- .local ::temp32 ScriptObject
- .local ::nonevar None
- .local ::temp33 form
- .endLocalTable
- .code
- CAST ::temp32 akSender ;@line 110
- CALLMETHOD UnregisterForRemoteEvent self ::nonevar ::temp32 "OnContainerChanged" ;@line 110
- CALLMETHOD GetBaseObject akSender ::temp33 ;@line 111
- CALLMETHOD RemoveItem self ::nonevar ::temp33 1 False None ;@line 111
- CALLMETHOD RemoveKeyword akSender ::nonevar ::BlockWorkshopInteractionKeyword_var ;@line 112
- .endCode
- .endFunction
- .function DisplayPerkMags
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .endParamTable
- .localTable
- .local ::nonevar None
- .local ::temp37 Bool
- .local MaxCount Int
- .local ::temp38 Bool
- .local Count Int
- .local ::temp39 Int
- .local ::temp40 String
- .local ::temp46 form
- .local ::temp49 magazinerackcontainerscript#displayperkmagstruct
- .local ::temp50 ObjectReference
- .local ::temp51 magazinerackcontainerscript#displayperkmagstruct
- .local ::temp52 ObjectReference
- .local ::temp53 ScriptObject
- .local ::temp54 Bool
- .local ::temp55 Bool
- .local ::temp56 Bool
- .local ::temp57 Bool
- .endLocalTable
- .code
- ARRAYLENGTH MaxCount ::PerkMagsInContainer_var ;@line 119
- COMPAREGT ::temp37 MaxCount 0 ;@line 120
- JUMPF ::temp37 label0 ;@line 120
- ASSIGN Count 0 ;@line 121
- label2:
- COMPARELT ::temp38 Count MaxCount ;@line 122
- JUMPF ::temp38 label1 ;@line 122
- ARRAYGETELEMENT ::temp51 ::DisplayPerkMagStructArray_var Count ;@line 125
- STRUCTGET ::temp40 ::temp51 PerkMagDisplayNode ;@line 125
- ARRAYGETELEMENT ::temp46 ::PerkMagsInContainer_var Count ;@line 125
- CALLMETHOD PlaceAtNode self ::temp50 ::temp40 ::temp46 1 False False False True ;@line 125
- ARRAYGETELEMENT ::temp49 ::DisplayPerkMagStructArray_var Count ;@line 125
- STRUCTSET ::temp49 PerkMagDisplayRef ::temp50 ;@line 125
- ARRAYGETELEMENT ::temp49 ::DisplayPerkMagStructArray_var Count ;@line 127
- STRUCTGET ::temp50 ::temp49 PerkMagDisplayRef ;@line 127
- CAST ::temp53 ::temp50 ;@line 127
- CALLMETHOD RegisterForRemoteEvent self ::temp54 ::temp53 "OnContainerChanged" ;@line 127
- ARRAYGETELEMENT ::temp51 ::DisplayPerkMagStructArray_var Count ;@line 128
- STRUCTGET ::temp52 ::temp51 PerkMagDisplayRef ;@line 128
- PROPGET Motion_Keyframed self ::temp39 ;@line 128
- CALLMETHOD SetMotionType ::temp52 ::nonevar ::temp39 False ;@line 128
- ARRAYGETELEMENT ::temp49 ::DisplayPerkMagStructArray_var Count ;@line 129
- STRUCTGET ::temp50 ::temp49 PerkMagDisplayRef ;@line 129
- CALLMETHOD AddKeyword ::temp50 ::nonevar ::BlockWorkshopInteractionKeyword_var ;@line 129
- CALLMETHOD AddKeyword ::temp50 ::nonevar ::PerkMagKeyword_var ;@line 129
- ARRAYGETELEMENT ::temp51 ::DisplayPerkMagStructArray_var Count ;@line 130
- STRUCTGET ::temp52 ::temp51 PerkMagDisplayRef ;@line 130
- CALLMETHOD SetNoFavorAllowed ::temp52 ::nonevar True ;@line 130
- ARRAYGETELEMENT ::temp49 ::DisplayPerkMagStructArray_var Count ;@line 131
- STRUCTGET ::temp50 ::temp49 PerkMagDisplayRef ;@line 131
- CALLMETHOD SetPlayerHasTaken ::temp50 ::nonevar True ;@line 131
- IADD Count Count 1 ;@line 132
- JUMP label2 ;@line 132
- label1:
- ARRAYLENGTH MaxCount ::PerkMagsInContainer_var ;@line 133
- COMPAREGT ::temp37 MaxCount 0 ;@line 133
- JUMPF ::temp37 label0 ;@line 134
- ARRAYGETELEMENT ::temp46 ::PerkMagsInContainer_var 0 ;@line 134
- CALLMETHOD RemoveItem self ::nonevar ::temp46 1 False None ;@line 134
- JUMP label1 ;@line 134
- label0:
- JUMPF ::IsSwivelRack_var label3 ;@line 135
- COMPAREEQ ::temp54 ::SwivelRackStage_var 1 ;@line 136
- JUMPF ::temp54 label4 ;@line 136
- ASSIGN ::SwivelRackStage_var 2 ;@line 137
- CALLMETHOD PlayAnimation self ::temp38 "Stage2" ;@line 138
- JUMP label5 ;@line 138
- label4:
- COMPAREEQ ::temp37 ::SwivelRackStage_var 2 ;@line 139
- JUMPF ::temp37 label6 ;@line 139
- ASSIGN ::SwivelRackStage_var 3 ;@line 140
- CALLMETHOD PlayAnimation self ::temp55 "Stage3" ;@line 141
- JUMP label5 ;@line 141
- label6:
- COMPAREEQ ::temp55 ::SwivelRackStage_var 3 ;@line 142
- JUMPF ::temp55 label7 ;@line 142
- ASSIGN ::SwivelRackStage_var 4 ;@line 143
- CALLMETHOD PlayAnimation self ::temp56 "Stage4" ;@line 144
- JUMP label5 ;@line 144
- label7:
- COMPAREEQ ::temp56 ::SwivelRackStage_var 4 ;@line 145
- JUMPF ::temp56 label5 ;@line 145
- ASSIGN ::SwivelRackStage_var 1 ;@line 146
- CALLMETHOD PlayAnimation self ::temp57 "Reset" ;@line 147
- JUMP label5 ;@line 147
- label5:
- JUMP label3 ;@line 147
- label3:
- .endCode
- .endFunction
- .function OnItemRemoved
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akBaseItem form
- .param aiItemCount Int
- .param akItemReference ObjectReference
- .param akDestContainer ObjectReference
- .endParamTable
- .localTable
- .local ::nonevar None
- .local ::temp29 Bool
- .local ::temp31 Bool
- .local ItemIndex Int
- .endLocalTable
- .code
- ARRAYFINDELEMENT ::PerkMagsInContainer_var ItemIndex akBaseItem 0 ;@line 99
- COMPAREGTE ::temp31 ItemIndex 0 ;@line 100
- JUMPF ::temp31 label0 ;@line 100
- ARRAYREMOVEELEMENTS ::PerkMagsInContainer_var ItemIndex 1 ;@line 103
- JUMP label0 ;@line 103
- label0:
- JUMP label1 ;@line 103
- label1:
- .endCode
- .endFunction
- .function OnWorkshopObjectDestroyed
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akActionRef ObjectReference
- .endParamTable
- .localTable
- .local ::nonevar None
- .endLocalTable
- .code
- CALLMETHOD DeletePerkMags self ::nonevar ;@line 183
- .endCode
- .endFunction
- .endState
- .state Busy
- .endState
- .state AllowActivate
- .function OnActivate
- .userFlags 0
- .docString ""
- .return None
- .paramTable
- .param akActionRef ObjectReference
- .endParamTable
- .localTable
- .local ::nonevar None
- .local ::temp5 actor
- .local ::temp6 ObjectReference
- .local ::temp7 Bool
- .endLocalTable
- .code
- CALLMETHOD GoToState self ::nonevar "Busy" ;@line 44
- CALLMETHOD BlockActivation self ::nonevar True False ;@line 45
- CALLMETHOD AddInventoryEventFilter self ::nonevar None ;@line 46
- CALLSTATIC game GetPlayer ::temp5 ;@line 49
- CAST ::temp6 ::temp5 ;@line 49
- COMPAREEQ ::temp7 akActionRef ::temp6 ;@line 49
- JUMPF ::temp7 label0 ;@line 49
- CALLSTATIC utility Wait ::nonevar 0.100000 ;@line 51
- CALLMETHOD DisplayPerkMags self ::nonevar ;@line 52
- JUMP label0 ;@line 52
- label0:
- CALLMETHOD GoToState self ::nonevar "AllowActivate" ;@line 55
- CALLMETHOD BlockActivation self ::nonevar False False ;@line 56
- .endCode
- .endFunction
- .endState
- .endStateTable
- .endObject
- .endObjectTable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement