johnnyboy 3797 Posted March 23, 2021 Die you Pencil Necked Freak!!!!! 6 4 Share this post Link to post Share on other sites
froggyluv 2136 Posted March 23, 2021 Kill it with fire !! 1 Share this post Link to post Share on other sites
phronk 898 Posted March 24, 2021 It's Karl Pilkington at his peak form 3 Share this post Link to post Share on other sites
LSValmont 789 Posted March 24, 2021 5 hours ago, johnnyboy said: Die you Pencil Necked Freak!!!!! Slender Tree? 🤣😱 2 1 Share this post Link to post Share on other sites
Slay No More 73 Posted March 24, 2021 I'm excited. Would you care if i added him into a mission whenever you released him? I feel like he would best be used for random encounters. 2 Share this post Link to post Share on other sites
johnnyboy 3797 Posted March 24, 2021 1 minute ago, Slay No More said: I'm excited. Would you care if i added him into a mission whenever you released him? I feel like he would best be used for random encounters. Of course you can use him, as all my scripts! Hopefully within a week I will release first version. Thanks for the interest. 1 Share this post Link to post Share on other sites
Slay No More 73 Posted March 24, 2021 Just now, johnnyboy said: Of course you can use him, as all my scripts! Hopefully within a week I will release first version. Thanks for the interest. Sounds amazing, I'm excited and thanks for the permission! I will do your work justice. I have some plans for your little guy here. 1 Share this post Link to post Share on other sites
pierremgi 4905 Posted March 24, 2021 If you want various (credible) sizes for all units, here is a little script, tested in SP, should work in MP... performance impact probably depending on number of groups and units. I hope I reduced it by tracking units with enabled simulation only (so, don't forget to use the dynamic simulation as performance tool) In Init.sqf ["STpopulation","onEachFrame", { { { if (local _x && simulationEnabled _x) then { if (isNil {_x getVariable "tall"}) then { _x setVariable ["tall" , 1 + ((random 0.3^1.4)* selectRandom [-1,1.2]) ,TRUE]; }; _x setObjectScale (_x getVariable ["tall",1]) }; } forEach units _x; } forEach allGroups; }] call bis_fnc_addStackedEventHandler; 1 1 Share this post Link to post Share on other sites
DeadNuts 1 Posted March 24, 2021 Awesome job, this is the kinda stuff I envisioned when I first started tinkering around with scripting in Arma a couple years ago. Was pretty bummed to find that there was no way to scale objects but it seems they've fixed that with the new setobjectscale command. Have you tested this in a multiplayer environment? I tried spawning in some scaled objects on my server and only things that are local to each client appear scaled. I also thought that it could only be used on simple objects and/or objects that are attached to something. When I spawn in a AI soldier with a modded scale they immediately "snap" back to the proper size within a second or two. Also I can't seem to get AI to stay in scaled vehicles even when they are attached to something... they bail out after a few seconds. Anyways, really looking forward to a public release of this, thanks for sharing what you have so far. Share this post Link to post Share on other sites
pierremgi 4905 Posted March 24, 2021 4 hours ago, DeadNuts said: Have you tested this in a multiplayer environment? I tried spawning in some scaled objects on my server and only things that are local to each client appear scaled. I also thought that it could only be used on simple objects and/or objects that are attached to something. When I spawn in a AI soldier with a modded scale they immediately "snap" back to the proper size within a second or two. Also I can't seem to get AI to stay in scaled vehicles even when they are attached to something... they bail out after a few seconds. Anyways, really looking forward to a public release of this, thanks for sharing what you have so far. Which test? I ask that because I just released a test above your post, supposed to be MP friendly. This command is (AL EG - Biki) so, it MUST be applied on local units (player PC for his group, server or HC for autonomous AIs), but the effect is global... The good question is how? As you know, the units can shift for new owner (PC) when a player joins and takes the lead of a group (beyond the player's slot itself). The reason why, I froze a public value for the scale (broadcast setVariable), but applied the scale, locally, on each frame (due to animations). Any feedback? 1 Share this post Link to post Share on other sites
johnnyboy 3797 Posted March 24, 2021 5 hours ago, DeadNuts said: Have you tested this in a multiplayer environment? You should try Pierre's test. Pierre and I are doing giants differently. He is using the constant onEachFrame code to keep unit scaled up. My approach is to attach the scaled up unit to a hidden non-scaled unit (so no on EachFrame loop used). His approach is cleaner and less work. I may or may not convert to the onEachFrame approach (it depends on my time available). Regarding MP, I know I need to do a lot of tweaks first (i.e., change all my playmove/switchmove/playaction commands to use remoteExec). I will do that work. After that it would have to be MP tested by someone else. I suspect there will be performance issues with many giants due to all the attachments. One JBOY giant is currently comprised of 5 objects (3 AI and 2 objects).) BRAIN: a hidden AI that does the pathfinding and moving (giant attached to this unit) BRAWN: an attached scaled up giant ai that plays all the move and attack animations PAIN: a hidden attached AI that takes bullet damage that is applied to the giant (necessary because hits on attached scaled up unit are not detected otherwise) MEAN: a scaled up skull helmet CLUB: a scaled up club object SPEAR: I will be adding a spear object soon Note that my giants are different than scaled up units. They have their own attacks and behaviours. If you want a "normal" unit that drives cars and uses weapons, then use Pierre's approach. You will get your result with much less effort. 2 1 Share this post Link to post Share on other sites
phronk 898 Posted March 25, 2021 As a slight tip, playAction is a global command that AI on the server can execute and doesn't need to be remoteExecuted. However, switchAction does need to be remoteExecuted, as well as the animation commands like you mentioned such as playMove / playMoveNow / switchMove. 1 Share this post Link to post Share on other sites
diwako 413 Posted March 25, 2021 Looking forward to this. Have not found a good solution to make this work in MP on my end. 1 Share this post Link to post Share on other sites
maxjoiner 284 Posted March 29, 2021 This is awesome! All size problems fixed! I could develop King Kong or Godzilla! 😜 5 Share this post Link to post Share on other sites
LSValmont 789 Posted March 30, 2021 17 hours ago, maxjoiner said: This is awesome! All size problems fixed! I could develop King Kong or Godzilla! 😜 Or add 3 meters Engineers to your aliens pack! 😉 1 Share this post Link to post Share on other sites
marki980908 23 Posted March 31, 2021 When is the script coming out? This looks AWESOME. I also love that this is a script and not a mod (I prefer scripts), would be perfect for Attack On Titan scenario Share this post Link to post Share on other sites
aussie battler 94 Posted April 16, 2021 On 3/24/2021 at 4:54 PM, pierremgi said: If you want various (credible) sizes for all units, here is a little script, tested in SP, should work in MP... performance impact probably depending on number of groups and units. I hope I reduced it by tracking units with enabled simulation only (so, don't forget to use the dynamic simulation as performance tool) In Init.sqf ["STpopulation","onEachFrame", { { { if (local _x && simulationEnabled _x) then { if (isNil {_x getVariable "tall"}) then { _x setVariable ["tall" , 1 + ((random 0.3^1.4)* selectRandom [-1,1.2]) ,TRUE]; }; _x setObjectScale (_x getVariable ["tall",1]) }; } forEach units _x; } forEach allGroups; }] call bis_fnc_addStackedEventHandler; Hi @pierremgi Thanks for sharing the code. I can get the code to work in editor, but not when I spawn in a group during a mission. I was wondering if you can see where I have gone wrong please 🙂 The units spawn in at normal size (see "Start Giants"): Spoiler /* ---------------------------------------------------------------------------- Function: BLWK_fnc_createSuicideWave Description: creates the suicide bombers and sends them towards The Crate Executed from "BLWK_fnc_handleSuicideWave" Parameters: 0: _unitsToWorkWith : <ARRAY> - Units to potentially turn into bombers Returns: NOTHING Examples: (begin example) [unitsArray] call BLWK_fnc_createSuicideWave; (end) Author(s): Hilltop(Willtop) & omNomios, Modified by: Ansible2 // Cipher ---------------------------------------------------------------------------- */ params ["_unitsToWorkWith"]; private _numberOfBombers = round (count _unitsToWorkWith / 4); private _bombersArray = _unitsToWorkWith select [0,_numberOfBombers]; private "_unitGroupTemp"; _bombersArray apply { _unitGroupTemp = group _x; [_unitGroupTemp] call CBAP_fnc_clearWaypoints; [_unitGroupTemp, BLWK_mainCrate, 5, "MOVE", "CARELESS"] call CBAP_fnc_addWaypoint; //start giants ["giant","onEachFrame", { { { if (local _x && simulationEnabled _x) then { if (isNil {_x getVariable "tall"}) then { _x setVariable ["tall" ,4,TRUE]; }; _x setObjectScale (_x getVariable ["tall",1]) }; } forEach units _x; } forEach _unitGroupTemp; }] call bis_fnc_addStackedEventHandler; // ["small_man","onEachFrame", {{_x setObjectScale 0.5} forEach _bombersArray;}] call bis_fnc_addStackedEventHandler; //end giants // aussie added suicide uniform by KilzoneKid private ["_expl1","_expl2","_expl3"]; removeHeadgear _x; removeVest _x; _x addVest "V_HarnessOGL_brn"; _x addHeadgear "H_ShemagOpen_khk"; _expl1 = "DemoCharge_Remote_Ammo" createVehicle position _x; _expl1 attachTo [_x, [-0.1, 0.1, 0.15], "Pelvis"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ]; _expl2 = "DemoCharge_Remote_Ammo" createVehicle position _x; _expl2 attachTo [_x, [0, 0.15, 0.15], "Pelvis"]; _expl2 setVectorDirAndUp [ [1, 0, 0], [0, 1, 0] ]; _expl3 = "DemoCharge_Remote_Ammo" createVehicle position _x; _expl3 attachTo [_x, [0.1, 0.1, 0.15], "Pelvis"]; _expl3 setVectorDirAndUp [ [0.5, -0.5, 0], [0.5, 0.5, 0] ]; // end suicide uniform }; I also tried running the "call bis_fnc_addStackedEventHandler;" in my mission init with no luck 😞 There are no error messages in the logs. Share this post Link to post Share on other sites
pierremgi 4905 Posted April 16, 2021 Your stacked event handlers "onEachFrame" have no parameter, so, the _unitGroupTemp or _bomberArrays variable remains undefined inside the EH code. Try: ["giant","onEachFrame", {...code with parameter...}, [_unitGroupTemp] ] call BIS_fnc_addStackedEventHandler; so: ["giant","onEachFrame", { _unitGroupTemp = _this #0; { { if (local _x && simulationEnabled _x) then { if (isNil {_x getVariable "tall"}) then { _x setVariable ["tall" ,4,TRUE]; }; _x setObjectScale (_x getVariable ["tall",1]) }; } forEach units _x; } forEach _unitGroupTemp; },[_unitGroupTemp] ] call bis_fnc_addStackedEventHandler; Same for "small_man" stacked EH. 2 Share this post Link to post Share on other sites
aussie battler 94 Posted April 16, 2021 Thanks for the quick reply @pierremgi Ill give it a shot. Share this post Link to post Share on other sites
Valken 623 Posted April 26, 2021 I just saw this video and thought of this mod to create a new game mode. It came from Halo but was remade for Gmod/Half Life 2. Could be Escape the Giant over a VR course for performance! 1 Share this post Link to post Share on other sites
johnnyboy 3797 Posted May 4, 2021 v1 of JBOY Giant now released. See top post for demo mission download link and instructions how to add giants to your own mission. Feel free to use these any way you like, and modify the code any way you like (just credit me is all I ask). I hope to start making a mission using these bad boys soon, which will inspire me to add more features. Have fun! 8 2 Share this post Link to post Share on other sites
pierremgi 4905 Posted May 4, 2021 12 hours ago, johnnyboy said: ... which will inspire me to add more features. Something like that: 0 = [] spawn { enableCamShake true; while {alive giant1} do { waitUntil {_footPrt = (nearestObject [giant1, "#mark"]); _footPrt distance2D giant1 < 1 or !alive giant1}; addCamShake [2 - (giant1 distance2D player)/200, 1, 20]; sleep 0.2; _footPrt = objNull } }; Note I don't know what could be the distance check, between footstep and giant, for your giant. 1 1 Share this post Link to post Share on other sites
Gunter Severloh 4068 Posted May 16, 2021 25 minutes ago, sammael said: Attack on Titan johnnyboy would have to create butt naked giants to live up to that Attack on Titans theme 😄 About as close as i got to that would be this 1 Share this post Link to post Share on other sites
marki980908 23 Posted May 16, 2021 3 hours ago, Gunter Severloh said: johnnyboy would have to create butt naked giants to live up to that Attack on Titans theme 😄 About as close as i got to that would be this Just need to make underwear skin colored and will be perfect xd 1 1 Share this post Link to post Share on other sites