Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variable - Set Projectile_Point = (Point((X of (Position of Player_Unit[PlayerID])), (Y of (Position of Player_Unit[PlayerID])), (Height of Player_Unit[PlayerID])))
- Variable - Set FireAngleXY = (Current camera yaw of player PlayerID)
- Variable - Set FireAngleZ = (Current camera pitch of player PlayerID)
- Actor - Create actor Bullet_1a at point Projectile_Point
- Actor - Send message "AnimPlay Stand Stand PlayForever" to actor (Last created actor)
- Variable - Set Projectile_Actor = (Last created actor)
- General - While (Conditions) are true, do (Actions)
- Conditions
- Not
- Conditions
- (PointCanGo(Projectile_Point)) == false
- Time > TravelTime
- Actions
- Actor - Send message "Destroy Immediate" to actor Projectile_Actor
- 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])))))
- Actor - Create actor Bullet_1a at point Projectile_Point
- Actor - Send message "AnimPlay Stand Stand PlayForever" to actor (Last created actor)
- Variable - Set Projectile_Actor = (Last created actor)
- 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)))
- UI - Display (Text(FireAngleZ) with Any Precision decimal places) for (All players) to Subtitle area
- UI - Display (Text(PointPosition)) for (All players) to Subtitle area
- Player Group - Pick each player in (Enemies of player PlayerID) and do (Actions)
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- (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
- Then
- 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)
- Actor - Send message "Destroy Immediate" to actor Projectile_Actor
- UI - Display "Target Hit!" for (All players) to Chat area
- General - Break
- Else
- Variable - Set Time = (Time + 0.1)
- General - Wait 0.1 Game Time seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement