Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class "SloMo"
- function SloMo:__init()
- Events:Subscribe("Partition:ReadInstance", self, self.OnReadInstance)
- self.RPG7_GUID = Guid("08F58ECD-BC99-48AA-A9B3-47D412E99A4E","D")
- self.RPG7 = nil
- self.KnifeFiring_GUID = Guid("741082C8-07A9-4B20-AB25-1B6CB0EC136A","D")
- self.KnifeBullet_GUID = Guid("BDBFA354-1B1E-4AD3-8826-D7BA1C0C3287","D")
- self.RazorFiring_GUID = Guid("6F12285B-A6D9-4865-AF33-448902C0DD64","D")
- self.RazorBullet_GUID = Guid("DDE585ED-C043-48E3-A023-C73D549D8F6E","D")
- end
- function SloMo:OnReadInstance(p_Instance, p_GUID)
- if p_Instance == nil then
- return
- end
- if p_GUID == self.RPG7_GUID then print("RPG7") self.RPG7 = p_Instance end
- if p_Instance.typeName == "BulletEntityData" then
- if p_GUID == self.KnifeBullet_GUID or p_GUID == self.RazorBullet_GUID then return end
- local BulletEntity = BulletEntityData(p_Instance)
- BulletEntity.initialSpeed = 5
- BulletEntity.timeToLive = 99999
- BulletEntity.gravity = 0
- end
- if p_Instance.typeName == "FiringFunctionData" then
- if p_GUID == self.KnifeFiring_GUID or p_GUID == self.RazorFiring_GUID then return end
- local BulletEntity = FiringFunctionData(p_Instance)
- BulletEntity.shot.initialSpeed = Vec3(0,0,5)
- BulletEntity.ammo.numberOfMagazines = 999
- BulletEntity.ammo.magazineCapacity = 10
- end
- if p_Instance.typeName == "MissileEntityData" then
- local BulletEntity = MissileEntityData(p_Instance)
- BulletEntity.initialSpeed = 5
- BulletEntity.timeToLive = 99999
- BulletEntity.gravity = 0
- BulletEntity.engineStrength = 0
- end
- if p_Instance.typeName == "MeleeWeaponData" then
- local MeleeWeapon = MeleeWeaponData(p_Instance)
- MeleeWeapon.useCannedAnimation = false
- end
- if p_Instance.typeName == "VeniceSoldierCustomizationAsset" then
- local SoldierAsset = VeniceSoldierCustomizationAsset(p_Instance)
- print(SoldierAsset.name)
- local WeaponTable = SoldierAsset.weaponTable
- local KnifeTable = WeaponTable:GetUnlockPartsAt(7)
- local PrimaryTable = WeaponTable:GetUnlockPartsAt(0)
- WeaponTable:ClearUnlockParts()
- PrimaryTable:ClearSelectableUnlocks()
- PrimaryTable:AddSelectableUnlocks(UnlockAsset(self.RPG7))
- WeaponTable:AddUnlockParts(PrimaryTable)
- WeaponTable:AddUnlockParts(KnifeTable)
- end
- end
- local noKnifeAnim = SloMo()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement