Coder Social home page Coder Social logo

deploybike4a3e's Introduction

DeployBike4A3E

*Deploy vehicle from dyna menu (Space key menu) *Pack vehicle from dyna menu while looking at it *You can define any vehicle to spawn *The vehicle is spawned server side (not saved in the hive, but theoretically possible) *No animation like DayZ Epoch's "deploy anything" for now (but theoretically possible with client side modification)

Server side

copy these two files: epoch_server\compile\deploy_vehicle\Epoch_Deploy_server_PackVehicle.sqf epoch_server\compile\deploy_vehicle\Epoch_Deploy_server_SpawnVehicle.sqf

Modify those files: epoch_server\config.cpp Line146~(in class CfgServerFunctions -> class A3E):

    class deploy_vehicle {
        class Deploy_server_SpawnVehicle {};
        class Deploy_server_PackVehicle {};
    };

epoch_server\init\server_init.sqf : at bottom (outside any curly brackets) "Deploy_SpawnVehicle" addPublicVariableEventHandler{(_this select 1) call Epoch_Deploy_server_SpawnVehicle}; "Deploy_PackVehicle" addPublicVariableEventHandler{(_this select 1) call Epoch_Deploy_server_PackVehicle};

Client side

Modify two files: epoch_config\Configs\CfgActionMenu\CfgActionMenu_self.hpp (at bottom)

class Deploy_deploy { condition = "!dyna_inVehicle"; action = "Deploy_SpawnVehicle = [player,'MBK_01_EPOCH']; publicVariableServer 'Deploy_SpawnVehicle';"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\repair.paa"; tooltip = "Deploy Bike"; };

epoch_config\Configs\CfgActionMenu\CfgActionMenu_target.hpp (at bottom)

class Deploy_pack { condition = "(dyna_cursorTarget iskindof 'MBK_01_EPOCH') && ((crew dyna_cursorTarget) isEqualTo [])"; action = "Deploy_PackVehicle = [player,dyna_cursorTarget]; publicVariableServer 'Deploy_PackVehicle';"; icon = "x\addons\a3_epoch_code\Data\UI\buttons\repair.paa"; tooltip = "Pack Vehicle"; };

BE filter: in the end of the 1st line of publicvariable.txt : !="Deploy_SpawnVehicle" !="Deploy_PackVehicle"

deploybike4a3e's People

Contributors

schalldampfer avatar

Stargazers

Bronn avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.