Jump to content
TeardownMods

elboydo

Members
  • Content Count

    27
  • Joined

  • Last visited

  • Days Won

    1

Files posted by elboydo

  1. Elboydo's Armed Vehicle Framework (AVF)

    Description:
     
    A framework that enables people to create their own armed vehicles with ease and minimal configuration. 
     
    Vehicles will be able to mount an array of weapons from simple machine guns to artillery launchers with ease, each with their own weapon zoom, ammo capacities, and ammo types. Including penetration mechanics. 
     
    This will work with any AVF compatible vehicle in any loaded map, provided that they are configured correctly.
     
    Player enabled overrides allow users to modify almost any available weapon parameter to their needs. 

    INSTALLATION:
    ensure you have the latest experimental version of teardown (5.1 at this time), this will not work on any version <5.1.  copy the AVF folder into your documents/teardown/mods/ folder.  ensure that you activate it as a global mod in the mod tree, this will ensure any AVF compatible vehicle will function as intended. See fig below
     
     
     
    quick install video:  
     
     
    CONTROLS:
    fire                                     = "lmb", sniper Mode                   = "rmb", elevate Gun                    = "c", depress Gun                  = "x", change Weapons         = "r", change Ammunition   = "f", deploy Smoke                = "g", lock Angle                       = "j", lock Rotation                  = "k",  

    Demo video of functionality:
     
     
     
    Simple vehicle config: 
     
    To prepare your armed vehicle, this framework follows this simple concept: A vehicle has a body, a body has a chassis, and a body also may have a turret joint connected to a turret. 
     
    A vehicle body and / or a turret may then be connected to a gun joint, so long as a gunjoint is connected to your guns barrel then this script can find it. 
     
    a gun joint typically being a vertical hinge that goes up and down. 
     
    Quick config for a vehicle is as follows:
     
    add inside tags=""
    vehicle -> cfg=vehicle
    body -> component=body
    vox  (for vehicle body) -> component=chassis
    vox (for turret) -> component=turret turretGroup=mainTurret
    joint (for turret joint) ->component=turretJoint
    vox (for gun) -> component=gun weaponType=2A46M group=primary  
    vox (for gun joint) -> component=gunJoint
     
     
    This will define a simple tank using a 2A46M tank gun. 
     
    The logic for this mod is as follows: You have a vehicle with a body. That body would have a main chassis, this chassis then may have joints connecting to guns, called gunJoints, and then joints connected to turrets, called "turretJoints", these "turretJoints" then may have further "turretJoints" and more importantly "gunJoints". 
     
     
    The below image defines how a T90 Tank is defined, with a Turret that has smoke grenade capacity on the main turret, alongside a weapon defined for the 2A46 tank gun. This gun is also configured for the gun name to show as "BAD_BOY_DISCO", and changing the first magazine of the gun from the original 125mm heat to APHR. Users can also change many other values from gun rpm, sounds, projectile velocity, calibre, tracer style, penetration depth, etc. 
     
    the first and fastest step to configure your own vehicle may be to copy the structure of the contents of the "tags=""" parts of this image onto your vehicle. 
    Key words for this tool are always 
     
    cfg=vehicle   - tells the script that this is a player vehicle
    component=  - tells the script what part of the vehicle this is 
     
    @SOMETHING - the override value. 
     

     
    Overrides:
    Simple overrides are performed by override key placed in vehicle tags, ex: tags="component=gun weaponType=2A46M group=primary t90Gun_1 
                                @name=Bad_Boy_Disco" 
    would define a weapon of type 2A46M to the primary weapon group with the name "Bad_Boy_Disco"
    full override list: 
     
                        name     = "name",
                        weaponType                 = "weaponType",
                        default = "default",
                        magazines                 = {
                                                    name = "name",
                                                    magazineCapacity = "magazineCapacity",
                                                    magazineCount     = "magazineCount"
                                                    },
                        loadedMagazine             = "loadedMagazine",
                        barrels                 = 
                                                    {
                                                        x="x",
                                                        y="y",
                                                        z="z",
                                                    },
                        backBlast                 = {
                                                    z = "z",
                                                    force = "force"
                                                    },
                        sight                    = {
                                                        x="x",
                                                        y="y",
                                                        z="z",
                                                    },
                        multiBarrel             = "multiBarrel",
                        canZoom                    = "canZoom",
                        fireControlComputer        = "fireControlComputer",
                        zoomSight                = "zoomSight",
                        aimReticle                 = "aimReticle",
                        highVelocityShells        = "highVelocityShells",
                        cannonBlast             = "cannonBlast",
                        RPM                     = "RPM",
                        reload                     = "reload",
                        recoil                     = "recoil",
                        dispersion                 = "dispersion",
                        gunRange                = "gunRange",
                        gunBias                 = "gunBias",
                        elevationSpeed            = "elevationSpeed",
                        smokeFactor             = "smokeFactor",
                        smokeMulti                = "smokeMulti",
                        soundFile                = "soundFile",
                        mouseDownSoundFile         = "mouseDownSoundFile",
                        loopSoundFile             = "loopSoundFile",
                        tailOffSound             = "tailOffSound",
                        reloadSound             = "reloadSound",
                        reloadPlayOnce             = "reloadPlayOnce",
     

     
     
     
    Full Ammo Override List: 
     
        name                = "name",    
        caliber             = "caliber",
        velocity             = "velocity",
        timeToLive             = "timeToLive",
        launcher             = "launcher",
        payload             = "payload",
        shellWidth                = "shellWidth",
        shellHeight                = "shellHeight",
        r                        = "r",
        g                        = "g", 
        b                        = "b", 
        tracer                     = "tracer",
        tracerL                    = "tracerL",
        tracerW                    = "tracerW",
        tracerR                    = "tracerR",
        tracerG                    = "tracerG", 
        tracerB                    = "tracerB", 
        shellSpriteName            = "shellSpriteName",
        shellSpriteRearName        = "shellSpriteRearNameg",
        magazineCapacity       = "magazineCapacity",
        magazineCount        = "magazineCount",
        explosionSize        = "explosionSize",
        maxPenDepth            = "maxPenDepth",
        flightLoop             = "flightLoop",
     
     
     
    USAGE IN XML: 
     
    for simple modification of a gun type, use the "@ITEM=VALUE" hotkey. Items that above that are enclosed in curly brackets - {} need an initializer.


    Simple gun modification: 
     
     
    gun barrel modification ( works for gun barrels, backblasts) these work by having the keyword E.G @barrels followed by @barrels1x to change the x value of the first barrel location.  gun sights work this way but only take values with 1 as only one gun sight per gun is supported
     
     
    example Below changes the technical mg in the technical playgrounds gun location and changes the first magazine to use larger tracer rounds that are green. 
     
                        <vox tags = "component=gun weaponType=DSHK group=primary 
                            @barrels
                            @barrels1x=.3
                            @barrels1y=.5
                            @barrels1z=-.3
                            @magazine1_tracer=1
                            @magazine1_tracerL=6
                            @magazine1_tracerW=3
                            @magazine1_tracerR=0.1
                            @magazine1_tracerG=1.3
                            @magazine1_tracerB=0.1" 
                               density="1.2" pos="0 1.6 -.9" strength="2" rot="0.0 0 0.0"  file="LEVEL/technical.vox" object="MG" prop="true">                    
      
     
     
     
    In theory, you would never need to edit any lua with this code. It is purely XML configs on any compatible vehicle. Through simple XML tags. 
     
     
    While Custom gun sights and sounds may be needed but it's best to embed them within the LEVEL and have a pointer to them in your xml tags.

    If you have any custom sights, or sounds, or pre-configed weapons you would like added to the base mod then i would happily include them if you give me the basic info / files, provided you can ensure they would work in normal situations through xml config. 



    There also is included a custom lua config file which you can utilize by wrapping an editor instance of your vehicle in the script and then modifying the values in there with named keywords to add extra weapons to fit your vehicle. 
     
    This was largely made in a day, i may still be hungover, a better description of using this will be provided with potential video application later on when i get round to it.  If you have an questions or notice any issues then please don't hesitate t contact me. 



    CUSTOM MAPS USING AVF 
     
     
     
     
     
     
     
     
     

    776 downloads

       (7 reviews)

    11 comments

    Updated

  2. Binoculars

    A simple mod that enables Binoculars in Teardown.  Binoculars can be activated by pressing "b" and then zooming in and out with the middle mouse button. 
     
     
    Install:
    To install, unzip the binoculars.zip file and place the binoculars folder into your Mydocuments/teardown/mods folder. you should then see a "Binoculars" file in your in game mod menu, click enable and they will function on pressing the b button in game. 
     
    Customisation:

    Multiple Different sets of lenses for the binoculars can be enabled through the mods options menu, of different colours and cleanliness. 
     
     
    Many thanks to My Cresta for their help in making this mod work and inspiration to try out player based scoping mechanics. 
     

    77 downloads

       (2 reviews)

    1 comment

    Updated

  3. T-90 MBT

    A functional T-90 tank that includes accurate model recreation and tank weapons. 
     
     
    Many thanks to @spexta for their fantastic work in modelling this tank. 
     
     
     V0.5.1 requirements:
     
    AVF required:
     
     
     
     
     
    V0.5.1 INSTALL : 
     
    Extract contents of T90 standalone and then copy the t90 standalone folder to your documents/teardown/mods folder
     
    load the map by selecting it in your mods folder and pressing play. 

    471 downloads

       (1 review)

    3 comments

    Updated

  4. ZSU-23-4

    A functional ZSU-23-4 AA Vehicle that includes accurate model recreation and AA weapons. Both high ROF HE and AP rounds with tracer 
     
     
    Many thanks to @spexta for their fantastic work in modelling this tank. 
     
     
     V0.5.1 requirements:
     
    AVF required:
     
     
     
     
     
    V0.5.1 INSTALL : 
     
    Extract contents of ZSU-23-4 Standalone and then copy theZSU-23-4 Standalone folder to your documents/teardown/mods folder
     
    load the map by selecting it in your mods folder and pressing play. 

    128 downloads

       (1 review)

    0 comments

    Updated

  5. BMP w working turret

    A full sized BMP vehicle with functional turret and working doors / hatches. 
     
     
     V0.5.1 requirements:
     
    AVF required:
     
     
     
     
     
    V0.5.1 INSTALL : 
     
    Extract contents of BMP standalone and then copy the BMP  standalone folder to your documents/teardown/mods folder
     
    load the map by selecting it in your mods folder and pressing play. 
     
    v.4 install below 

    Install: 

    A demo vehicle map is included, just backup your original create/ vehicle files then paste the vehicle.xml and vehicle folder into the create folder. 

    There also is a scripts folder controlling turret scripts and bmp.vox + bmp.xml, paste the scripts folder and bmp.vox into your level folder, then add the lines of code in the bmp.xml to the level xml. 
     
    Defined file structure (for quickstart install)
     
    create vehicle scripts bmp1_armed.lua mountedGun.lua <all files ending with>.vox vehicle.xml data ui hud.lua
     

    1,981 downloads

       (7 reviews)

    7 comments

    Updated

  6. Technical playground - working turrets and guns

    A selection of three technicals with weapons. 

    including: 
    MG technical
    SPG9 technical
    ZU-23 technical
     
    Type 63 artillery technical 
     
    Grad launcher technical 
     
     V0.5.1 reqiurements:
     
    AVF required:
     
     
     
     
     
    V0.5.1 INSTALL : 
     
    Extract contents of technical playground v5 and then copy the technical playground  folder to your documents/teardown/mods folder
     
    load the map by selecting it in your mods folder and pressing play. 
     
     
     
     
    v4 info below
     
    Script and xml files included. 

    Install: 

    A demo vehicle map is included, just backup your original create/ vehicle files then paste the vehicle.xml and vehicle folder into the create folder. 

    There also is a scripts folder controlling turret scripts and technical.vox + technical.xml for all vehicles (spg and mg are same file), paste the scripts folder and technical .vox files into your level folder, then add the lines of code in the relevant technical .xml to the level xml. 
     
     
     
    videos
     
     
     
     
     
     

    1,040 downloads

       (4 reviews)

    4 comments

    Updated

  7. T72

    A full sized T72 tank with functional turret and working cannon. 
     
    V0.5.1 reqiurements:
     
    AVF required:
     
     
     
     
     
    V0.5.1 INSTALL : 
     
    Extract contents of T72 standalone and then copy the t72 standalone folder to your documents/teardown/mods folder
     
    load the map by selecting it in your mods folder and pressing play. 
     
     
     

    pre 0.5 Install: 
    A demo vehicle map is included, just backup your original create/ vehicle files then paste the vehicle.xml and vehicle folder into the create folder. 
     
     
    Tanks support both mouse control with left click to fire and mouse + space bar control, mouse to handle rotation and space for fire. 
    Manage gun elevation with short clicks and turret rotation with holding the mouse.

    Defined file structure (for quickstart install)
    create vehicle scripts <all files ending with>.vox except hud.lua <all files ending with>.vox vehicle.xml data ui hud.lua
    Demo video:
     
     


    Soon to come: Shell penetration
     
     

    723 downloads

       (8 reviews)

    0 comments

    Updated

  8. elboydos vehicle and mounted gun Script - script only

    A mod that enables player controlled turrets through both physics based control and in vehicle control - includes extensions to change fire rate, type, and ammo capacities. 


    Excerpt from Readme: 





    ELBOYDOS MOUNTED GUN AND PLAYER CONTROLLED TURRET SCRIPT
    Author : elboydo
    published 11-11-2020
    i dunno, i may extend this readme later. 
    ____________________________________________________________

    To install::
    Place files within create folder here to your create folder in teardown/create

    To enable weapon usage, copy the hud.lua file to teardown/data/ui

    IF YOU DON'T WANT TO MESS WITH YOUR HUD.LUA DUE TO OTHER MODS: 
        copy this line into the "draw()" method in hud.lua
        if UiIsMousePressed() then
            SetBool("mouse.pressed",true)
        else
            SetBool("mouse.pressed",false)
        end
        SetInt("mouse.wheel", UiGetMouseWheel()) 
    if you have these methods already in your hud.lua then happy days, the mods should work fine.

    FAILURE TO COPY THE HUD.LUA FILE WILL MEAN WEAPONS WON'T WORK AND ASKING WHY WEAPONS WON'T WORK DUE TO NOT DOING THIS 
             MAY RESULT IN PANDAS HAVING THEIR FAVOURITE TOYS TAKEN AWAY FROM THEM
     

    Setting configs:
    A default config for a mounted gun has been included in this script. description to modify for your vehicular setups as follows: 
    Always include "#include mountedGun.lua" to enable mounted gun functionality. 

    config values: 

    --[[
     Vehicle config
    ]]
    vehicle = {
        mainName                 = <VEHICLE NAME> ,
        Vehiclename             = <VEHICLE BODY NAME>,
          CannonName                 = <VEHICLE TURRET / GUN NAME> ,
          CannonJointName         = <VEHICLE TURRET JOINT NAME>,
          Create                     = "elboydo",
          barrelOffset             = <Y OFFSET FROM TURRET TO SPAWN MUNITIONS>
          manualControl            = <ONLY ENABLE PHYSICS BASED CONTROL - FALSE BY DEFAULT, SET TO TRUE TO BLOCK IN VEHICLE TURRET CONTROL>
    }
    --[[
     Mounted gun config
    ]]
    weaponFeatures = {
        armed                     = <TRUE/FALSE     - VEHICLE CAN USE WEAPONS>
        timeToFire                 = <INT             - PERIOD OVER WHICH TO FIRE A BURST>,
        magazineCapacity         = <INT             - TOTAL NUMBER OF SHOTS PER BURST>,
        reloadTime                 = <INT             - TIME AFTER BURST TO RELOAD WEAPON>,
        hasRockets                 = <BOOL         - CAN THE GUN  FIRE ROCKETS>,
        hasRocketCapacity        = <BOOL         - DOES THE GUN HAVE A FINITE ROCKET SUPPLY,
        rocketCapacity             = <INT             - TOTAL NUMBER OF ROCKETS THE VEHICLE CAN HAVE>,
        rocketStartingAmmo         = <INT             - NUMBER OF ROCKETS THE GUN  SPAWNS WITH>,
        startRockets            = <BOOL         - DOES THE GUN SPAWN WITH ROCKETS LOADED>,  
        hasMG                     = <BOOL         - CAN THE GUN USE AN MG>,
        hasMGCapacity            = <BOOL         - DOES THE MG HAVE A FINITE MG ROUND SUPPLY>,
        MGCapacity                 = <INT             - TOTAL NUMBER OF MG ROUNDS THE GUN CAN HAVE>,
        MGStartingAmmo             = <INT             - NUMBER OF MG ROUNDS THE GUN SPAWNS WITH>,
        displayWeaponDetails    = <BOOL         - DISPLAY EXTRA WEAPON DETAILS ABOUT AMMO LEFT SHOWS ON THE GUN ITSELF>,
        rocketExtraconsumption     = <INT             - DOES FIRING ROCKETS USE EXTRA MUNITIONS (ONLY IMPACTS BURST LENGTH NOT ROCKET AMMMO)>,
        rocketReloadPenalty     = <INT             - EXTRA TIME ADDED TO RELOAD TIME PER ROCKET FIRED>,
        ammoBoxMGName             = <STRING         - NAME OF PROP ACTING AS MG AMMO BOX FOR CHOOSING MUNITION>,
        ammoBoxRocketName         = <STRING         - NAME OF PROP ACTING AS ROCKET AMMO BOX FOR CHOOSING MUNITIONS>
    }

    359 downloads

       (4 reviews)

    0 comments

    Updated

  9. Physical Throwables

    Physical Throwables

    This mod introduces several different grenades that all physically exist in world for the player to pick up and use. 

    Grenades include: 
     
    Molotov cocktail - Starts burning and spreads fire to nearby burnable items for period of time Smoke Grenade  - Produces large plume of smoke to cover player movement Frag Grenade      - Individual frag creates small explosion after countdown Cluster Grenade  - Bundled explosives create one large explosion followed by multiple exploding submunitions White Phosphorous - Bundled grenade holds a bursting charge that sends several small voxels that will burn uncontrollably for a period of time flying down over your target Usage: 
    Pick grenade up with right click, press "e" to arm, move yourself somewhere where the grenade is not.  
     
    Install:
    Backup your castle.xml + castle folder and then place the contents of the zip folder in your teardown/create folder. 

    File Structure:
    create castle scripts all .lua files all .vox files castle.xml Demo video:
     
     

    691 downloads

       (3 reviews)

    0 comments

    Updated

×
×
  • Create New...