-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interaction - Add Flip and Push actions to Quad Bike, Kart and Static Weapons #6019
Conversation
Add this also to the Karts? |
Karts already have What do you think about |
I'd love to see a |
Can I have one for tables? |
You can "Flip" static weapons allready by drag/carry them and place them again. |
My only fear with this is that a vehicle might get arma'd and clip something and explode 😆 Looks good though! |
As long as he does |
@@ -17,3 +17,6 @@ | |||
#include "\z\ace\addons\main\script_macros.hpp" | |||
|
|||
#define MACRO_DOOR_REACH_DISTANCE (AGLToASL positionCameraToWorld [0,0,0] vectorDistance AGLToASL (ACE_player modelToWorld (ACE_player selectionPosition "Head"))) + 2 | |||
|
|||
// here is most suitable mass for all vanilla, CUP and RHS statics ATM (ZU-23 suits, D-30 and M119 don't suit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditch "here is", it's obviously here if the comment is here. ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, fully dynamic framework would be nice, but it's not exactly required or needed at this time. If you so wish though, we won't have anything against it. Just so @bux can flip all the tables!
addons/interaction/CfgVehicles.hpp
Outdated
class ACE_MainActions: ACE_MainActions { | ||
class GVAR(flip) { | ||
displayName = CSTRING(Flip); | ||
condition = QUOTE(1 < (vectorUp _target) vectorDistance (surfaceNormal getPosATL _target) && {0 == {alive _x} count crew _target}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First condition should be made into a common function, as it repeats.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't want to move such a small piece of code to function.
@jonpas No, thank you :) I think bux just joked. |
Possibly add push actions to boat class? a fix for the beached RHIB |
@Snak3Doc already in my todo list |
… Weapons (#6019) * Add Flip and Push actions to Quad Bike * Add actions to karts and static weapons * Move magic number to macro * Ditch here is * Move condition to function
When merged this pull request will:
Flip
action to static weapons;Push
action Russian translation.Inspired by ACE2
Flip ATV
action.There is
str_a3_cfgvehicles_quadbike_01_base_f_useractions_pressxtoflipthequad0
string (Flip the quad bike
) in vanilla already, but it's not implemented and it's not universal (my one can be used for any vehicle) and it has very bad Russian translation.Also in ACE2 there was
abs (speed _target) < 3
in condition, but I can't see any sense to use it with ACE3 interaction menu.