Ecphrasis
Member-
Content Count
14 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout Ecphrasis
-
Rank
Private First Class
-
After 19 hours, this morning, I triy to mobilize the HQ and Badaboum ! This is my "Common_CreateVehicle.sqf". despite of the invulnerabilty, the HQ exploded as soon as he spawned, in the air. /* # HEADER # Script: Common\Functions\Common_CreateVehicle.sqf Alias: CTI_CO_FNC_CreateVehicle Description: Create an empty vehicle Note that making a vehicle public with the _net variable will make it undergo the function CTI_CO_FNC_InitializeNetVehicle A public vehicle is initialized for all (+JIP) but the server Author: Benny Creation Date: 16-09-2013 Revision Date: 04-06-2014 (sari) # PARAMETERS # 0 [string]: The type of vehicle to create 1 [Array/Object]: The 2D/3D position where the vehicle should be created at 2 [integer]: The Azimuth direction (0-360°) of the vehicle 3 [side/Integer]: The Side or Side ID of the vehicle 4 {Optionnal} [boolean]: Determine if the vehicle should be created locked or not 5 {Optionnal} [boolean]: Determine if the vehicle should be "public" or not 6 {Optionnal} [boolean]: Determine if the vehicle should be handled upon destruction or not (bounty...tk...) 7 {Optionnal} [string]: Set a special spawn mode for the vehicle # RETURNED VALUE # [Object]: The created vehicle # SYNTAX # [CLASSNAME, POSITION, DIRECTION, SIDE] call CTI_CO_FNC_CreateVehicle [CLASSNAME, POSITION, DIRECTION, SIDE, LOCKED] call CTI_CO_FNC_CreateVehicle [CLASSNAME, POSITION, DIRECTION, SIDE, LOCKED, PUBLIC] call CTI_CO_FNC_CreateVehicle [CLASSNAME, POSITION, DIRECTION, SIDE, LOCKED, PUBLIC, HANDLED] call CTI_CO_FNC_CreateVehicle [CLASSNAME, POSITION, DIRECTION, SIDE, LOCKED, PUBLIC, HANDLED, SPECIAL] call CTI_CO_FNC_CreateVehicle # DEPENDENCIES # Common Function: CTI_CO_FNC_GetSideFromID Common Function: CTI_CO_FNC_GetSideID Common Function: CTI_CO_FNC_OnUnitGetOut Common Function: CTI_CO_FNC_OnUnitHit Common Function: CTI_CO_FNC_OnUnitKilled # EXAMPLE # _vehicle = ["B_Quadbike_01_F", getPos player, 0, CTI_P_SideJoined] call CTI_CO_FNC_CreateVehicle; -> Create a "B_Quadbike_01_F" at the player's position facing North on the player's initial side _vehicle = ["B_Quadbike_01_F", getPos player, 180, CTI_P_SideJoined, true, true] call CTI_CO_FNC_CreateVehicle; -> Create a locked and handled "B_Quadbike_01_F" at the player's position facing South on the player's initial side */ private ["_direction", "_handle", "_locked", "_net", "_position", "_side", "_special", "_type", "_vehicle"]; _type = _this select 0; _position = _this select 1; _direction = _this select 2; _side = _this select 3; _locked = if (count _this > 4) then {_this select 4} else {false}; _net = if (count _this > 5) then {_this select 5} else {false}; _handle = if (count _this > 6) then {_this select 6} else {false}; _special = if (count _this > 7) then {_this select 7} else {"FORM"}; if (typeName _position == "OBJECT") then {_position = getPos _position}; if (typeName _side == "SIDE") then {_side = (_side) call CTI_CO_FNC_GetSideID}; _vehicle = createVehicle [_type, _position, [], 7, _special]; _vehicle setDir _direction; _vehicle setPos [getPos _vehicle select 0, getPos _vehicle select 1, 0.5]; //--- Make the vehicle spawn above the ground level to prevent any bisteries if (_special != "FLY") then { _vehicle setVelocity [0,0,1]; } else { _vehicle setVelocity [50 * (sin _direction), 50 * (cos _direction), 0]; }; if (_locked) then {_vehicle lock 2} else {_vehicle lock 0}; if (_net) then {_vehicle setVariable ["cti_net", _side, true]}; if (_handle) then { _vehicle addEventHandler ["killed", format["[_this select 0, _this select 1, %1] spawn CTI_CO_FNC_OnUnitKilled", _side]]; //--- Called on destruction _vehicle addEventHandler ["hit", {_this spawn CTI_CO_FNC_OnUnitHit}]; //--- Register importants hits //--- Track who get in or out of the vehicle so that we may determine the death more easily _vehicle addEventHandler ["getIn", {_this spawn CTI_CO_FNC_OnUnitGetOut}]; _vehicle addEventHandler ["getOut", {_this spawn CTI_CO_FNC_OnUnitGetOut}]; _vehicle setVariable ["cti_occupant", _side call CTI_CO_FNC_GetSideFromID]; }; _vehicle spawn { _vehicle = _this; _tempEH = _vehicle addEventHandler ["HandleDamage", {false}]; sleep 2; _vehicle removeEventhandler ["HandleDamage", _tempEH]; }; _vehicle Nothing special in the .RPT 9:31:54 Admin Ecphrasis logged in. 9:33:31 Server: Object 2:2845 not found (message Type_227) 9:36:04 Out of path-planning region for R Alpha 2-1:5 at 9421.9,15940.3, node type 9:36:05 Out of path-planning region for R Alpha 2-1:5 at 9421.9,15940.3, node type Explosion was around 9:34 Maybe a problem with Linux, an uppercase or something ?
-
Thanks again, I test this code :)
-
Need to wait the next release of mod to have this code, or maybe you can tell me where and what to insert in the code directly, to have it now ? Thanks !
-
Thank again. Yes, it'a a major issue because players try at the beginning to build new bases and HQ is too unstable. I have made some tests and HQ explode at 80%. Maybe because others buildings are too close ? Is there a quick way to make him invulnerable, in vehicle state ? Because the mission is unplayable for me at this time and it's very frustrating ;) I am surprised to be alone with this huge problem. I am trying to do it by myself but too noob in coding ;) EDIT : doing some new tests, maybe it's because I build first buildings very close to HQ...
-
Thanks for the extra fast answer ! It solved my problem, because I have not enough supply (60000 in the last version 10/3/2015). Another problem is very often the HQ is repaired and exploded at the same time...
-
First of all, thanks for this wonderfull mod ! I have few questions, because I host a server with this mod, modified by sari and it works great. - When HQ is wreck, what are the rules for repairing ? sometimes, IA commander repair it sometimes, no, and I can't explain this... - It is possible to repair HQ whitout AI Commander ? Thx for answering !
-
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Update today ! The new version of arma3server is the same than your patch ? Is there a changelog ? -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Yes, I have already watched with htop, hard to say, because the graphs move very fast and I have another services on the server...I think multicore is on, but not sure. No problem with steam update for me now... [ 0%] Checking for available updates... [----] Verifying installation... Steam Console Client © Valve Corporation -- type 'quit' to exit -- Loading Steam3...OK. Logging in user 'xxxxxxxx' to Steam Public...Success. Success! App '233780' already up to date. -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Thx you again for this wonderfull patch who increased a lot my server performance ;) It will be included in a future official release ? And yes, if it's the case ? Last question, I think it activate mlticore option, I am wrong ? -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
So happy to read this ! the new version supports multi core, with cpucount= ? -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Thx a lot for this important information, it works ! -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Sorry for double posting... Another question, because the answers on internet are not very easy to understand. When I make a Zeus mission for my team, the IA are overskilled (my mates are killed on one shot), so I want to reduce skill of the IA. I want to create a profile for this. Problem, under Linux, the parameter -profiles doesn't work...So how can we reduce difficulty ? And what the difference between -name, and -profiles ? I can't find an easy answer ? Thwx for the answers :) -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Thanks for the answer, I wait this fix ;) I understand now why the number of linux DS is so low on the browser ;) -
Linux Dedicated Server feedback
Ecphrasis replied to dazhbog's topic in ARMA 3 - SERVERS & ADMINISTRATION
Hi all, first topic on this forum, excuse me if it's not the right place, but I haven't the right to post anywhere for the moment ;) I searched a lot, but I'm tired because I can't find an answer : I have a dedicated server under Linux, it's working very fine, but always monocore, the processor is an I3, 4 Threads. When I put -cpucount=2, it change nothing at all, one core is used, and not the other one. SO this command is working under LInux, or not ? And if it's working, how can we activate it ? Thanks and sorruy for my very bad english !