+ Reply to Thread
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 34

Thread: Ac-130 Specture Gun Ship -=WIP=-

  1. #21
    Wirererer cakeguy's Avatar
    Join Date
    Feb 2009
    Posts
    146

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    I see how it it u don't think i can do it *cry*

    And i am going to have module guns / expressions

  2. #22
    Wirererer Generic Default's Avatar
    Join Date
    Jul 2008
    Location
    Jalalabad, Afghanistan
    Posts
    321

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    The guns;

    @name Trajectory Coordinate Gun
    @inputs Active Position:vector
    @outputs
    @persist Bearing Elevation Distance Area:vector

    runOnTick(1)
    Area = Position
    Compensate = (atan(0.0036/8100 * Distance*cos(entity():angles()itch())))
    Bearing = entity():bearing(Area)
    Elevation = entity():elevation(Area)
    Distance = (Position-entity()os()):length()
    Speed = 100
    Torque = 35
    Rigidity = 30
    Aim = ang(-entity():angVel()itch()+clamp((-Elevation-Compensate)*Rigidity*Active,-Speed,Speed),-entity():angVel():yaw()+clamp(-Bearing*Rigidity*Active,-Speed,Speed),-entity():angVel():roll()-entity():angles():roll()*30) * shiftL(ang(entity():inertia())) * Torque
    entity():applyAngForce(Aim)


    The camera sensor;

    @name WASD Position Holding Sensor
    @inputs Active W A S D EyeX EyeY CamTog Shift Vehicle:entity
    @outputs Distance Camera Zoom Chip:entity Forward:vector Position:vector TrackEnt:entity TrackPos:vector TX TY TZ
    @persist Zoom Distance Trace:ranger

    runOnTick(1)
    HoldingTorque = 35

    #Camera Toggle
    if (~CamTog & CamTog) {Camera = !Camera}
    if (Active==0) {Camera = 0}

    #Camera Zoom
    if (~Shift & Shift) {Zoom -= (Zoom/1.2)}
    if (Zoom<1) {Zoom = 70}
    if (Active==0) {Zoom = 70}

    #Distance Ranger
    rangerDefaultZero(1)
    Trace = rangerOffset(150000,entity()os()+entity():forward()*500,entity():forward())
    Distance = Trace:distance()+500
    Forward = entity():forward()
    Position = entity()os()+entity():forward()*500
    TrackPos = Traceosition()
    TX = Traceosition():x()
    TY = Traceosition():y()
    TZ = Traceosition():z()
    TrackEnt = Trace:entity()

    #WASD Manual Aiming
    Radian = 57.28
    MotionPitch = entity():vel():dot(entity():up())*Radian/Distance*Active
    MotionYaw = entity():vel():dot(entity():right())*Radian/Distance*Active
    Anglo = ang((-EyeY+(S-W))*Zoom/3*Active+MotionPitch-entity():angVel()itch(),((-EyeX+(A-D))/2)*Zoom*Active*abs(cos(entity():angles()itch()))+MotionYaw-entity():angVel():yaw(),-entity():angles():roll()*30-entity():angVel():roll()) * shiftL(ang(entity():inertia())) * HoldingTorque
    entity():applyAngForce(Anglo)
    if (~Active & Active) {Vehicle:hintDriver("Press SPACE for camera mode Press Shift to zoom Use WASD and the mouse to aim.",7)}

    These are the updated E2's that work just like the ones on my SUAV. These use coordinates instead of angles so they work for guns that are farther apart like the ones on the AC130.

  3. #23
    Wirererer Blaylock1988's Avatar
    Join Date
    Apr 2009
    Location
    North Carolina
    Posts
    280

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    Quote Originally Posted by Generic Default View Post
    The guns;

    Code:
    @name Trajectory Coordinate Gun
    @inputs Active Position:vector
    @outputs 
    @persist Bearing Elevation Distance Area:vector
    
    runOnTick(1)
    Area = Position
    Compensate = (atan(0.0036/8100 * Distance*cos(entity():angles():pitch())))
    Bearing = entity():bearing(Area)
    Elevation = entity():elevation(Area)
    Distance = (Position-entity():pos()):length()
    Speed = 100
    Torque = 35
    Rigidity = 30
    Aim = ang(-entity():angVel():pitch()+clamp((-Elevation-Compensate)*Rigidity*Active,-Speed,Speed),-entity():angVel():yaw()+clamp(-Bearing*Rigidity*Active,-Speed,Speed),-entity():angVel():roll()-entity():angles():roll()*30) * shiftL(ang(entity():inertia())) *  Torque
    entity():applyAngForce(Aim)
    The camera sensor;

    Code:
    @name WASD Position Holding Sensor
    @inputs Active W A S D EyeX EyeY CamTog Shift Vehicle:entity
    @outputs Distance Camera Zoom Chip:entity Forward:vector Position:vector TrackEnt:entity TrackPos:vector TX TY TZ
    @persist Zoom Distance Trace:ranger
    
    runOnTick(1)
    HoldingTorque = 35
    
    #Camera Toggle
    if (~CamTog & CamTog) {Camera = !Camera}
    if (Active==0) {Camera = 0}
    
    #Camera Zoom
    if (~Shift & Shift) {Zoom -= (Zoom/1.2)}
    if (Zoom<1) {Zoom = 70}
    if (Active==0) {Zoom = 70}
    
    #Distance Ranger
    rangerDefaultZero(1) 
    Trace = rangerOffset(150000,entity():pos()+entity():forward()*500,entity():forward())
    Distance = Trace:distance()+500
    Forward = entity():forward()
    Position = entity():pos()+entity():forward()*500
    TrackPos = Trace:position()
    TX = Trace:position():x()
    TY = Trace:position():y()
    TZ = Trace:position():z()
    TrackEnt = Trace:entity()
    
    #WASD Manual Aiming
    Radian = 57.28
    MotionPitch = entity():vel():dot(entity():up())*Radian/Distance*Active
    MotionYaw = entity():vel():dot(entity():right())*Radian/Distance*Active
    Anglo = ang((-EyeY+(S-W))*Zoom/3*Active+MotionPitch-entity():angVel():pitch(),((-EyeX+(A-D))/2)*Zoom*Active*abs(cos(entity():angles():pitch()))+MotionYaw-entity():angVel():yaw(),-entity():angles():roll()*30-entity():angVel():roll()) * shiftL(ang(entity():inertia())) *  HoldingTorque
    entity():applyAngForce(Anglo)
    if (~Active & Active) {Vehicle:hintDriver("Press SPACE for camera mode           Press Shift to zoom        Use WASD and the mouse to aim.",7)}
    These are the updated E2's that work just like the ones on my SUAV. These use coordinates instead of angles so they work for guns that are farther apart like the ones on the AC130.
    lol, you forgot to put it in code. yeah my HK still has more code than that to fly.
    Thanks for posting those, i will probably use those for something on my contraptions.

    U.S. Air Force

    Terminator 3 HK-Drone Project
    Download V2 HERE

    New Halo Reach Falcon Project coming soon


  4. #24
    Wirererer cakeguy's Avatar
    Join Date
    Feb 2009
    Posts
    146

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    Quote Originally Posted by Generic Default View Post
    The guns;

    These are the updated E2's that work just like the ones on my SUAV. These use coordinates instead of angles so they work for guns that are farther apart like the ones on the AC130.
    ok... thx i guess lol there goes some fun, still going to add reg flying mode, and hehehe drone mode > -prob will get me baned from some severs-


    -==========UPDATE===========-
    Added another wing
    And rear workign landing gear
    PICS ARE AT
    ImageShack -
    -==========UPDATE===========-

  5. #25
    Wirererer Mikhail's Avatar
    Join Date
    May 2009
    Posts
    121

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    you should make it like an actual AC-130 to where you can put it in a mode where it will automatically circle around the map and when you either press a key or a chat command it will fly into position and let loose a large battery at where you were aiming when you said the command.

  6. #26
    Wirererer Blaylock1988's Avatar
    Join Date
    Apr 2009
    Location
    North Carolina
    Posts
    280

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    Quote Originally Posted by Mikhail View Post
    you should make it like an actual AC-130 to where you can put it in a mode where it will automatically circle around the map and when you either press a key or a chat command it will fly into position and let loose a large battery at where you were aiming when you said the command.
    That is pretty much what he is planning on doing.

    U.S. Air Force

    Terminator 3 HK-Drone Project
    Download V2 HERE

    New Halo Reach Falcon Project coming soon


  7. #27
    Wire Amateur MAGIK's Avatar
    Join Date
    Jul 2009
    Location
    Ask your mum
    Posts
    44

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    aim at a spot say/press something and it will circle where you are aiming at?

    try having a go at it it seems a good idea


    92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature.

  8. #28
    Wirererer cakeguy's Avatar
    Join Date
    Feb 2009
    Posts
    146

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    Quote Originally Posted by MAGIK View Post
    aim at a spot say/press something and it will circle where you are aiming at?

    try having a go at it it seems a good idea


    Quote Originally Posted by Mikhail View Post
    you should make it like an actual AC-130 to where you can put it in a mode where it will automatically circle around the map and when you either press a key or a chat command it will fly into position and let loose a large battery at where you were aiming when you said the command.
    thats drone mode...

  9. #29
    Wire Amateur TJ3003's Avatar
    Join Date
    May 2009
    Location
    In This Little Box
    Posts
    57

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    are you sure this is going to fly i mean it whould be very heavy and use smart weld at the end of the model or it will lag like hell.

  10. #30
    Wirererer cakeguy's Avatar
    Join Date
    Feb 2009
    Posts
    146

    Default Re: Ac-130 Specture Gun Ship -=WIP=-

    Quote Originally Posted by TJ3003 View Post
    are you sure this is going to fly i mean it whould be very heavy and use smart weld at the end of the model or it will lag like hell.
    *about to slap him*

    Its called parenting dur hur and apply force dur hurrrrrr

+ Reply to Thread
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. 3D Hologram Space Ship -WIP-
    By cakeguy in forum Finished contraptions
    Replies: 4
    Last Post: 08-26-2009, 04:34 AM
  2. My Space Ship
    By detsuo04 in forum Wiremod General Chat
    Replies: 19
    Last Post: 12-26-2007, 11:14 PM
  3. Vector Ship
    By dragondef in forum Finished contraptions
    Replies: 0
    Last Post: 08-24-2007, 11:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots