Advertisement
Guest User

Test Code for Trails Within the Weapon/SWEP

a guest
Mar 26th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. //Trails Test
  2. if self.Owner:IsValid() and Speed >= Min and self.IsRunning == 0 then
  3. self.IsRunning = 1
  4. self.Owner:TrailAddTest(testingtrail, self.Owner, self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_L_Hand")), self.Owner:LookupBone("ValveBiped.Bip01_L_Hand"), 1, "Test" )
  5. self.Owner:TrailAddTest(testingtrailtwo, self.Owner, self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_R_Hand")), self.Owner:LookupBone("ValveBiped.Bip01_R_Hand"), 1, "TestTwo" )
  6. self.Owner:TrailAddTest(testingtrailthree, self.Owner, self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_L_Foot")), self.Owner:LookupBone("ValveBiped.Bip01_L_Foot"), 1, "TestThree" )
  7. self.Owner:TrailAddTest(testingtrailfour, self.Owner, self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_R_Foot")), self.Owner:LookupBone("ValveBiped.Bip01_R_Foot"), 1, "TestFour" )
  8. end
  9. if self.Owner:IsValid() and Speed >= Min then
  10. self.Owner:UpdateTrail(self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_L_Hand")), "Test" )
  11. self.Owner:UpdateTrail(self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_R_Hand")), "TestTwo" )
  12. self.Owner:UpdateTrail(self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_L_Foot")), "TestThree" )
  13. self.Owner:UpdateTrail(self.Owner:GetBonePosition(ply:LookupBone("ValveBiped.Bip01_R_Foot")), "TestFour" )
  14. end
  15. if self.Owner:IsValid() and Speed <= Min then
  16. self.IsRunning = 0
  17. self.Owner:TrailRemoveTest(player.trailtests)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement