Universal Script 📌
631 Views
201 Executions

Flight script

Universal Script 📌
t0tyii71
t0tyii71First script
10 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Allows flight in almost ANY game

View Raw
with Ada.Text_IO;         use Ada.Text_IO;
with Ada.Float_Text_IO;   use Ada.Float_Text_IO;

procedure Flight_Sim is

   type Vector3 is record
      X : Float := 0.0;
      Y : Float := 0.0;
      Z : Float := 0.0;
   end record;

   function "+" (A, B : Vector3) return Vector3 is
   begin
      return (A.X + B.X, A.Y + B.Y, A.Z + B.Z);
   end;

   function "*" (A : Vector3; S : Float) return Vector3 is
   begin
      return (A.X * S, A.Y * S, A.Z * S);
   end;

   Position : Vector3 := (0.0, 0.0, 0.0);
   Velocity : Vector3 := (0.0, 0.0, 0.0);

   Flying   : Boolean := False;
   Speed    : Float   := 60.0;

   Input    : Character;

begin
   Put_Line("=== Ada Flight Simulation ===");
   Put_Line("F = toggle flight, WASD = move, Space = up, C = down, Q = quit");

   loop
      Put("Input: ");
      Get(Input);

      if Input = 'F' or else Input = 'f' then
         Flying := not Flying;
         if Flying then


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
160.4k
1.5M
Bumped 6 hours ago
Key System

Script hub

#14 this week

Verified script badgeAirflow HUB

Universal Script 📌
2.4k
996
Bumped 6 hours ago
Script hub
1.6M
1.9M
Bumped 6 hours ago
Key System

Script hub

#10 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Universal Script 📌
40.8k
817.6k
Bumped 8 hours ago
Universal Script 📌
134.0k
24.2k
Bumped 9 hours ago
Key System