Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. Variable - Set Projectile_Point = (Point((X of (Position of Player_Unit[PlayerID])), (Y of (Position of Player_Unit[PlayerID])), (Height of Player_Unit[PlayerID])))
  2. Variable - Set FireAngleXY = (Current camera yaw of player PlayerID)
  3. Variable - Set FireAngleZ = (Current camera pitch of player PlayerID)
  4. Actor - Create actor Bullet_1a at point Projectile_Point
  5. Actor - Send message "AnimPlay Stand Stand PlayForever" to actor (Last created actor)
  6. Variable - Set Projectile_Actor = (Last created actor)
  7. General - While (Conditions) are true, do (Actions)
  8. Conditions
  9. Not
  10. Conditions
  11. (PointCanGo(Projectile_Point)) == false
  12. Time > TravelTime
  13. Actions
  14. Actor - Send message "Destroy Immediate" to actor Projectile_Actor
  15. Point - Move Projectile_Point To (Point((ProjectileX(FireAngleXY, WeaponsSpeed, (X of Projectile_Point))), (ProjectileY(FireAngleXY, WeaponsSpeed, (Y of Projectile_Point))), (ProjectileZ(FireAngleZ, WeaponsSpeed, (Height of Player_Unit[PlayerID])))))
  16. Actor - Create actor Bullet_1a at point Projectile_Point
  17. Actor - Send message "AnimPlay Stand Stand PlayForever" to actor (Last created actor)
  18. Variable - Set Projectile_Actor = (Last created actor)
  19. Variable - Set PointPosition = ((("X-" + (String((X of Projectile_Point)) with Any Precision decimal places)) + (", Y-" + (String((Y of Projectile_Point)) with Any Precision decimal places))) + (", Z-" + (String((Height of Projectile_Point)) with Any Precision decimal places)))
  20. UI - Display (Text(FireAngleZ) with Any Precision decimal places) for (All players) to Subtitle area
  21. UI - Display (Text(PointPosition)) for (All players) to Subtitle area
  22. Player Group - Pick each player in (Enemies of player PlayerID) and do (Actions)
  23. Actions
  24. General - If (Conditions) then do (Actions) else do (Actions)
  25. If
  26. (Distance between (Position of (Closest unit to Projectile_Point in (Any units in (Entire map) owned by player (Picked player) matching No Unit Filter, with at most Any Amount))) and Projectile_Point) < WeaponRadius
  27. Then
  28. Unit - Set (Closest unit to Projectile_Point in (Any units in (Entire map) owned by player (Picked player) matching No Unit Filter, with at most Any Amount)) Life to (((Closest unit to Projectile_Point in (Any units in (Entire map) owned by player (Picked player) matching No Unit Filter, with at most Any Amount)) Life (Current)) - DamageAmount)
  29. Actor - Send message "Destroy Immediate" to actor Projectile_Actor
  30. UI - Display "Target Hit!" for (All players) to Chat area
  31. General - Break
  32. Else
  33. Variable - Set Time = (Time + 0.1)
  34. General - Wait 0.1 Game Time seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement