SA-2 Samson recreation

i’ve started recreating the helicopter from avatar aka. SA-2 Samson with sbep parts and e2 adn i will be posting any progress i make untill it is completely finished. i will also post the e2 code here for you guys to help me troubleshoot and improve to decrease lag and for faster execution.

http://img685.imageshack.us/i/sa2samson.jpg/

this is an old picture from when i started working on this. i will take a new picture soon and replace this.


@name SA-2 Samson
# Missile Related I/O
@inputs AdvPodCon_Mouse1 AdvPodCon_Mouse2 Front_Ranger
@outputs MissilepodLeft_Fire MissilepodRight_Fire Missilepods_GuidanceType 
@persist SafeSwitch1 SafeSwitch2 
# Targeting Related I/O
@inputs Left_Target:entity Right_Target:entity AdvPodCon_Alt LeftTarget_Target RightTarget_Target 
@outputs MissilepodLeft_Vector:vector MissilepodRight_Vector:vector LeftTargetFinder_NextTarget RightTargetFinder_NextTarget
# Propulsion Related I/O
@inputs AdvPodCon_W AdvPodCon_A AdvPodCon_S AdvPodCon_D 
@outputs Thrusters Rotors
# Levitation Related I/O
@inputs AdvPodCon_Space AdvPodCon_Shift AdvPodCon_R 
@outputs Hoverballs_Zvelocity Hoverballs_On 
# Freezer Related I/O
@inputs Ranger_Distance 
@outputs Landing_Equipment_Freezers Door_Freezer Engine_Freezer Cockpit_Freezer 
# Door Related I/O
@inputs Door1_Open Door2_Open 
@outputs Door1 Door2 

# Missile Related
Missilepods_GuidanceType = 1
MissilepodLeft_Vector = vec(Left_Target:pos():x(), Left_Target:pos():y(), Left_Target:pos():z() + 10)
MissilepodRight_Vector = vec(Right_Target:pos():x(), Right_Target:pos():y(), Right_Target:pos():z() + 10)
if (AdvPodCon_Mouse1 == 1) {
    if (SafeSwitch1 == 0) {
        if (Front_Ranger <= ) {
            MissilepodLeft_Fire = 1
        }
    }
}if (AdvPodCon_Mouse2 == 1) {
    if (SafeSwitch2 == 0) {
        if (Front_Ranger <= ) {
            MissilepodRight_Fire = 1
        }
    }
}
# Targeting Related
if (AdvPodCon_Alt == 1) {
    if (AdvPodCon_Mouse1 == 1) {
        LeftTargetFinder_NextTarget = 1
        SafeSwitch1 = 1
    }else{ 
        LeftTargetFinder_NextTarget = 0
        SafeSwitch1 = 0
    }
    
    if (AdvPodCon_Mouse2 == 1) {
        RightTargetFinder_NextTarget = 1
        SafeSwitch2 = 1
    }else{
        RightTargetFinder_NextTarget = 0
        SafeSwitch2 = 0
    }
}else{
    RightTargetFinder_NextTarget = 0
    LeftTargetFinder_NextTarget = 0
}


# Propulsion Related
if (AdvPodCon_W == 1) {
    Thrusters = 1
}else{
    Thrusters = 0
}

if (AdvPodCon_S == 1) {
    Thrusters = -1
}else{
    Thrusters = 0
}

if (AdvPodCon_A == 1) {
    applyAngForce(ang(0, 0, -10))
}

if (AdvPodCon_D == 1) {
    applyAngForce(ang(0, 0, 10))
}


# Levitation Related
if (~AdvPodCon_R & AdvPodCon_R) {
    Hoverballs_On = !Hoverballs_On
}


# Freezer Related
if (Hoverballs_On == 0) {
    if (Ranger_Distance <= 33) {
        Landing_Equipment_Freezers = 1
    }else{
        Landing_Equipment_Freezers = 0
    }
}

# Door Related


# Vector Creation



the “helicopter” will be much like that in the movie. i may also add turrets to the side openings if/when i find a good way to do it without vector thrusters and possibly with apply force.

feel free to post possible improvements to the code.
the organisation of the code is for easier spotting of the needed I/O and will NOT be edited.

Avatar is the best movie yet. Keep ths work up, IT’s coming along very good. Next thing you should try is a link bed complete with a thing(doens’t HAVE to be an Avatar) that it controls, and have he bed as a vehicle, etc. jus spitting out thoughts here.

of course your avatar is a big blue indian

I’d like to see the helicopter created.

good idea also

i notice people have made a few reskins of hand on the gmod.org that are to do with avatar

I think if we had some master modelers interested in making avatar props/ragdolls…