Jump to content

Playable drone test


Gauddlike

Recommended Posts

I have added drones (as vehicles) to my own game to see how possible it is.

I have also used my own vehicle weapon mod to equip them with a smoke grenade and flare launcher, no offensive weapons.

They run around pretty quick, have no weapons and are pretty fragile.

They don't work all that well, from a purely functional perspective.

The game doesn't seem able to work out that a vehicle shouldn't have a 3x3 selection box or take up a 3x3 area on the Chinook.

The game also crashes if you try and rearrange them on the dropship, I can't find anywhere to allocate the dropship images.

The images are also missing in the vehicle window (again can't see where they are allocated).

Some animations, like moving, are missing for some reason even though I am using the original drone folder as a source.

They also pass through fences for some reason.

Oh they also are not available for purchase, they have to be manufactured.

I am unsure how to make them take up garage space, unless they do it automatically as they are classed as vehicles.

As this is a test I have made the manufacturing job available from the start though, it would more than likely require recovery of a drone corpse if it made it as a proper mod.

Otherwise they are perfectly fine!

Edited by Gauddlike
Link to comment
Share on other sites

If anyone wants to try and add them to see where I might have missed some bits then these are the files to modify and information you need to add to them.

vehicles.xml

<Row>

<Cell><Data ss:Type="String">VEHICLE.DRONE</Data></Cell>

<Cell><Data ss:Type="Number">0.5</Data></Cell>

<Cell><Data ss:Type="Number">0.5</Data></Cell>

<Cell><Data ss:Type="String">n/a</Data></Cell>

<Cell><Data ss:Type="String">POWERPLANT.DRONE</Data></Cell>

<Cell><Data ss:Type="Number">15</Data></Cell>

<Cell><Data ss:Type="String">CHASSIS.DRONE</Data></Cell>

<Cell><Data ss:Type="Number">1</Data></Cell>

<Cell><Data ss:Type="Number">1</Data></Cell>

<Cell><Data ss:Type="Number">1</Data></Cell>

<Cell><Data ss:Type="Number">90</Data></Cell>

<Cell><Data ss:Type="Number">60</Data></Cell>

<Cell><Data ss:Type="Number">20</Data></Cell>

<Cell><Data ss:Type="Number">20</Data></Cell>

<Cell><Data ss:Type="Number">20</Data></Cell>

<Cell><Data ss:Type="Number">55</Data></Cell>

<Cell><Data ss:Type="Number">50</Data></Cell>

<Cell><Data ss:Type="String">VV.SMOKEGRENADE</Data></Cell>

<Cell><Data ss:Type="String">VV.FLARE</Data></Cell>

<Cell><Data ss:Type="String">No</Data></Cell>

<Cell><Data ss:Type="String">vehicles/ferret</Data></Cell>

<Cell><Data ss:Type="Number">1</Data></Cell>

<Cell><Data ss:Type="Number">5000</Data></Cell>

<Cell><Data ss:Type="String">Yes</Data></Cell>

</Row>

Strings.xml

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s64"><Data ss:Type="String">VEHICLE.DRONE</Data></Cell>

<Cell><Data ss:Type="String">Scout Drone</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">CHASSIS.DRONE</Data></Cell>

<Cell ss:StyleID="s65"><Data ss:Type="String">Salvaged Light Drone</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">POWERPLANT.DRONE</Data></Cell>

<Cell><Data ss:Type="String">Anti-Grav Drive</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">ManTech.ScoutDrone</Data></Cell>

<Cell><Data ss:Type="String">Salvaged Scout Drone</Data></Cell>

</Row>

Items.xml

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">VEHICLE.DRONE</Data></Cell>

<Cell><Data ss:Type="Number">1000</Data></Cell>

<Cell><Data ss:Type="String">Vehicle</Data></Cell>

<Cell><Data ss:Type="String">vehicles/hunter</Data></Cell>

<Cell ss:StyleID="s64"><Data ss:Type="String">Item.Dispose.Destroyed</Data></Cell>

</Row>

Gsgcitemtranslator.xml

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">VEHICLE.DRONE</Data></Cell>

<Cell><Data ss:Type="String">ScoutDrone</Data></Cell>

</Row>

Vehicles_gc.xml

<Vehicle name="ScoutDrone" armour="ScoutDroneArmour" >

<EngineSound name="Drone Engine" />

</Vehicle>

Armours_gc.xml

<VehicleArmour name="ScoutDroneArmour">

<Front>

<Resistance kinetic="40" energy="15" chemical="20" incendiary="25" />

</Front>

<Side>

<Resistance kinetic="40" energy="15" chemical="20" incendiary="25" />

</Side>

<Rear>

<Resistance kinetic="40" energy="15" chemical="20" incendiary="25" />

</Rear>

<VisualParams range="16" coneAngle="90" />

</VehicleArmour>

Sounds_gc.xml

<Sound name="Drone Engine" volume="0.7" group="1" comment="">

<Wave>audio/sfx/sentinel_jump_pack_loop.ogg</Wave>

</Sound>

Manufactures.xml

<Row>

<Cell><Data ss:Type="String">ManTech.ScoutDrone</Data></Cell>

<Cell><Data ss:Type="String">Equipment</Data></Cell>

<Cell><Data ss:Type="Number">1</Data></Cell>

<Cell><Data ss:Type="Number">100000</Data></Cell>

<Cell><Data ss:Type="String">units/alien/lightdrone/lightdrone/weapon.lightdroneblaster/idle_sw</Data></Cell>

<Cell ss:Index="7"><Data ss:Type="String">StockItem( "VEHICLE.DRONE" );</Data></Cell>

<Cell><Data ss:Type="String">Yes</Data></Cell>

</Row>

/scripts/_basebuilt.lua

UnlockKnowledge( "ManTech.ScoutDrone" );

You will also need to add the smoke and flare launcher if you want to use those as weapons.

If not just delete the bold entries from the section above.

vehicleweapons_gc.xml

<Weapon name="Vehicle_smoke" bulletType="grenade" emptySound="audio/sfx/emptygun.ogg">

<props range="10" clipSize="8" />

<SingleShot sound="Vehicle Weapon Rocket Launch">

<Set1 ap="20" accuracy="20" />

<Set2 ap="30" accuracy="33" />

</SingleShot>

<GUIImage name="gui/weapons/grenadestun.png"/>

<GroundImage name="grounditemimages/grenade.png"/>

<Ammos>

<Ammo name="default" type="grenade" damage="0" mitigation="0">

<Projectile spectre="projectiles/grenade" speed="500"/>

<Impact spectre="particles/smoke/smoke" radius="3" sound="Weapon Gas Grenade" fireChance="0" smokeChance="90" gasType="GrenadeSmoke" />

</Ammo>

</Ammos>

</Weapon>

<Weapon name="Vehicle_flare" bulletType="flare" emptySound="audio/sfx/emptygun.ogg">

<props range="10" clipSize="10" />

<SingleShot sound="Vehicle Weapon Rocket Launch">

<Set1 ap="20" accuracy="20" />

<Set2 ap="30" accuracy="33" />

</SingleShot>

<GUIImage name="gui/weapons/flare.png"/>

<GroundImage name="grounditemimages/grenade.png"/>

<Ammos>

<Ammo name="default" type="energy" damage="0" mitigation="0">

<Projectile spectre="projectiles/grenade" speed="500"/>

<Impact spectre="projectiles/robbanas/explosion" radius="1" sound="Weapon Stun Grenade" fire="0" />

</Ammo>

</Ammos>

</Weapon>

vehicleweapons.xml

<Row>

<Cell><Data ss:Type="String">VV.SMOKEGRENADE</Data></Cell>

<Cell><Data ss:Type="String">Smoke</Data></Cell>

<Cell><Data ss:Type="Number">30</Data></Cell>

<Cell><Data ss:Type="Number">-10</Data></Cell>

<Cell><Data ss:Type="Number">100</Data></Cell>

<Cell><Data ss:Type="Number">8</Data></Cell>

<Cell><Data ss:Type="Number">5</Data></Cell>

<Cell><Data ss:Type="String">None</Data></Cell>

<Cell><Data ss:Type="Number">0</Data></Cell>

<Cell><Data ss:Type="String">weapons/ballistic/grenadesmoke</Data></Cell>

<Cell><Data ss:Type="String">SM</Data></Cell>

</Row>

<Row>

<Cell><Data ss:Type="String">VV.FLARE</Data></Cell>

<Cell><Data ss:Type="String">Flare</Data></Cell>

<Cell><Data ss:Type="Number">30</Data></Cell>

<Cell><Data ss:Type="Number">-10</Data></Cell>

<Cell><Data ss:Type="Number">100</Data></Cell>

<Cell><Data ss:Type="Number">10</Data></Cell>

<Cell><Data ss:Type="Number">5</Data></Cell>

<Cell><Data ss:Type="String">None</Data></Cell>

<Cell><Data ss:Type="Number">0</Data></Cell>

<Cell><Data ss:Type="String">weapons/misc/flare</Data></Cell>

<Cell><Data ss:Type="String">FL</Data></Cell>

</Row>

strings.xml

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s74"><Data ss:Type="String">VEHICLE.WEAPON.SMOKE</Data></Cell>

<Cell><Data ss:Type="String">Smoke launcher</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s74"><Data ss:Type="String">VEHICLE.WEAPON.FLARE</Data></Cell>

<Cell><Data ss:Type="String">Flare Launcher</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s67"><Data ss:Type="String">ManTech.VV.SMOKEGRENADE</Data></Cell>

<Cell ss:StyleID="s65"><Data ss:Type="String">Smoke launcher</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s67"><Data ss:Type="String">ManTech.VV.FLARE</Data></Cell>

<Cell ss:StyleID="s65"><Data ss:Type="String">Flare Launcher</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s62"><Data ss:Type="String">VV.SMOKEGRENADE</Data></Cell>

<Cell ss:StyleID="s65"><Data ss:Type="String">Smoke launcher</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell ss:StyleID="s62"><Data ss:Type="String">VV.FLARE</Data></Cell>

<Cell ss:StyleID="s65"><Data ss:Type="String">Flare Launcher</Data></Cell>

</Row>

items.xml

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">VV.SMOKEGRENADE</Data></Cell>

<Cell><Data ss:Type="Number">1000</Data></Cell>

<Cell><Data ss:Type="String">Unlimited</Data></Cell>

<Cell><Data ss:Type="String">weapons/vehicle/rocket</Data></Cell>

<Cell ss:StyleID="s64"><Data ss:Type="String">Item.Dispose.Destroyed</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">VV.FLARE</Data></Cell>

<Cell><Data ss:Type="Number">1000</Data></Cell>

<Cell><Data ss:Type="String">Unlimited</Data></Cell>

<Cell><Data ss:Type="String">weapons/vehicle/rocket</Data></Cell>

<Cell ss:StyleID="s71"><Data ss:Type="String">Item.Dispose.Destroyed</Data></Cell>

</Row>

gsgcitemtranslator.xml

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">VV.SMOKEGRENADE</Data></Cell>

<Cell><Data ss:Type="String">Vehicle_smoke</Data></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">VV.FLARE</Data></Cell>

<Cell><Data ss:Type="String">Vehicle_flare</Data></Cell>

</Row>

gas_gc.xml

<GasType name="GrenadeSmoke">

<Anim name="particles/lightsmoke/lightsmoke" />

<Props damage="0" stunDamage="2" dissipationChance="40" accuracyReduction="20" LOSReduction="3" />

</GasType>

Edited by Gauddlike
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...