Jump to content

Mr Groch

Member
  • Content Count

    111
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Mr Groch

  • Rank
    Sergeant

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @DaChevs weapons weaponsholder magazines weaponholder Gives an empty array.. This is the problem... I don't need Kroznky script, I know hot to put weapons in WeaponHolder, I don't know how to retrieve it from there... @Sickboy Thx, I didn't know that I can call code inside an publicvariable But this is not for me - I am making an addon, and I want it to be independent... addPublicVariableEventHandler will be ok, when all players have this addon... So I need setvehicleinit way... But thx anyway, becouse you have mentioned about VehicleVarName. I think that this should do it I have just a question - if I will do something like this: init.sqf: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_unit = this select 0; _name = ""; _i = 0; while{ !(isnil "_name") }do { _i=_i+1; _name=(call compile format["Unit%1",_i]) }; _name=format["Unit%1",_i]; _unit setvehiclevarname _name; _unit call compile format["%1=_this; publicVariable ""%1""",_name] action_script.sqs: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _unit = _this select 0 _caller = _this select 1 _name = VehicleVarName _unit call compile format ["_caller setvehicleinit ""this DoSomethingOn %1""",_name] processinitcommands clearvehicleinit _caller Will it work? And how about name of the unit that have been set in mission editor? Will it be still accessable? Or setvehiclevarname will overwrite it?
  2. Becouse that was just an example... I have also other needs to use "local" object variable in setvehicleInit statement... PS. And one more think - how to remove player from vehicle? leavevehicle and dogetout don't work on players... action["eject",vehicle _unit] work, but is there a way to remove player from vehicle, without playing "eject" anim?
  3. Hi! I want to make something like this: local.sqs (called by AddAction): <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_unit = this select 0 _object = "xxx" createvehicle position _unit _unit setVehicleInit "this assignascargo _object; this moveincargo _object" processInitCommands clearVehicleInit _unit Yes - I want to move remote unit (other player) into a vehicle... But this is only an example, I have also other actions, that need to use "local" object variables... I tried make something like that: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">call compile format ["_unit setVehicleInit ""this assignascargo %1; this moveincargo %1""",_object] But I see that I can't use object or unit type in format[]... Thx for help! My ther question is... How to retrieve all weapons and magazines from the WeaponHolder object? I'm currently creating 2d table with all weapons and magazines that I have putted in my created WeaponHolder, but this is nor a good solution, becouse if someone take a weapon from WeaponHolder using Gear menu - my table isn't "up-to-date"... And one more think - effects of addWeaponCargo are only local? Becouse it seems that wepons are puted to WeaponHolder only on client computer when using that in local script...
  4. Mr Groch

    SLX MOD public release

    Sorry for double post... I have found what is responsible for crashing dedicated server... Server is crashing ALWAYS when SLX_WeaponHolder OR SLX_WeaponHolder2 "vehicle" is created... So this is something to do with bad p3d model or config mistake... Unfortunately, i'm not good with ArmA modelling... So anyone pls, I can give all amterials and support yuu need.. Can someone check what is wrong with SLX_WeaponHolder and SLX_WeaponHolder2 models and configs? BTW: I have discovered that SLX_Wounds isn't MP friendly (bleeding, first aid, bandage, captives), so I am working on it. I have menaged currently to make bleeding, first aid and bandage system working on MP, for all palyers and for AI... I can fix this addon, so it will be fully working in MP, but I need someone to help me with SLX_WeaponHolder and SLX_WeaponHolder2 models - find what s wrog with them - they are crashing dedicated server when trying to create those "vehicles"... Thx PS. Maybe someone from SLX Mod dev team can help me with those models?
  5. Mr Groch

    SLX MOD public release

    Hmm... I see.. So maybe I can take a look at that... But there is really lot of scripts... It will be hard to find what is responsible for the crashes (only on dedi server). Someone had same problem? Maybe some other people from SLX mod team can help me with finding that bug? Thx
  6. Mr Groch

    SLX MOD public release

    I have reprted an issue to bug tracker... I have installed SLX on linux 1.14 server. Server is crashing when I try to drag wounded AI, or sometimes just fter my shot to AI, if he is close enough (that should be wounded after that shot). Can I request an temporary fix for this (just so our clan server can be accessible normally)? THX
  7. Mr Groch

    Sample T72 model - turret isn't rotating

    So no one had problem with not moving turret? So other request... Can somebody send to me T72 p3d model, not binarized?
  8. To remove the smoke/fire destruction particle effects: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class DestructionEffects {}; To remove the secondary (fuel/ammo) explosion: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">secondaryExplosion=false; Hmm.. Don't work.. Chute is still exploding when it hit the ground... driverOpticsModel = "\ca\weapons\optika_empty"; UnitInfoType = "UnitInfoCar"; selectionClan = ""; selectionDashboard = ""; selectionShowDamage = ""; selectionBackLights = ""; bounding = "doplnovani"; scope = 1; model="\RAS_Parachute\RAS_Parachute"; Icon="\ca\air\data\map_ico\icomap_Para_CA.paa"; mapSize = 5; nameSound = "parachute"; accuracy = 0.5; camouflage=2; audible=0; hasGunner = 1; fuelCapacity = 0; picture = "\ca\air\data\ico\Para_CA.paa"; soundEngine[]={"\ECS_Sounds\sounds\misc\parachuterun.wss",0.500000,1}; soundEnviron[]={"\ECS_Sounds\sounds\misc\windloop01.wss",1.000000,1}; soundGetIn[]={"",0.000000,1}; soundGetOut[]={"\ECS_Sounds\sounds\misc\parachutestop.wss",0.200000,1}; soundCrash[]={"\ECS_Sounds\sounds\misc\crashland01.wss",0.200000,1}; soundLandCrash[]={"\ECS_Sounds\sounds\misc\crashland02.wss",0.200000,1}; soundWaterCrash[]={"\ECS_Sounds\sounds\misc\crashwater.wss",0.200000,1}; gunnerCanSee = CanSeeEye+CanSeeEar+CanSeePeripheral; secondaryExplosion = false; extCameraPosition[]={0,2,-5}; destrType=DestructNo; maxSpeed = 200; envelope[] = {0.0, 0.0, 0.0}; class DestructionEffects {}; class ViewPilot: ViewPilot { initFov=0.7; minFov=0.4; maxFov=0.95; initAngleX=0; minAngleX=-70; maxAngleX=+70; initAngleY=0; minAngleY=-110; maxAngleY=+110; }; class Turrets { class MainTurret : NewTurret { body = ""; gun = ""; commanding = -1; memoryPointsGetInGunner = "pos gunner"; memoryPointsGetInGunnerDir = "pos gunner dir"; weapons[] = {}; magazines[] = {}; castGunnerShadow = 1; viewGunnerShadow = 1; gunnerAction = "Para_Pilot"; gunnerInAction = "Para_Pilot"; showgunneroptics = 0; gunnerForceOptics = 0; gunnerOpticsShowCursor = 0; class ViewGunner { initFov=0.7; minFov=0.4; maxFov=0.95; initAngleX=0; minAngleX=-70; maxAngleX=+70; initAngleY=0; minAngleY=-110; maxAngleY=+110; }; class ViewOptics { initFov=0.7; minFov=0.4; maxFov=0.95; initAngleX=0; minAngleX=-70; maxAngleX=+70; initAngleY=0; minAngleY=-110; maxAngleY=+110; }; }; }; occludeSoundsWhenIn = db-0; obstructSoundsWhenIn = db-0; nightVision=1; class Reflectors {}; enableGPS = 0; class AnimationSources { class hide_chute { source = "user"; animPeriod = 0; }; }; };
  9. Hello I wanted to retexture sample T72 model, I have putet this model without editing just for test in new config T72_Test : T72 {}; I can drive this tank, sit as commander, gunner, shot, etc, but as I am a commander I can't rotate Dshkm, and when I am gunner I can't rotate my "big gun"... Why? Something is wrong with sample model? http://www.flashpoint1985.com/cgi-bin....t=67070
  10. Hello I want to use specified keys combination for some actions in my addon, but I don't want to hardcode all actions to specified keycodes... How to extract binded keycode for crouch or prone for example in scripts? Thx
  11. Hello! I am interested in fixing RAS Parachute addon... I have something like this in vehicle class: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class UserActions { class OpenChute { displayName = "Open Chute"; position = zamerny; radius = 1; sound[]={}; condition = "dump = player getVariable ""ChuteOpen""; (gunner this == player) && isNil(""dump"")"; statement = "player setVariable [""ChuteOpen"",1]"; onlyForPlayer = 1; }; class CutChute { displayName = "Cut Chute"; position = zamerny; radius = 1; sound[]={}; condition = "dump = player getVariable ""ChuteOpen""; (gunner this == player) && !isNil(""dump"")"; statement = "player setVariable [""ChuteOpen"",2]"; onlyForPlayer = 1; }; }; But after moving player into parachut (player moveingunner parachut), player don't have those action visible. Those action will apeear only after switching to 3rd Person View. Next when I switch bakc to 1st person view - it will be ok. Why? How to make this actions visible all the time from the beginning? Next thing is - when parachute will be destroyed - it will explode... I have <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">destrType=DestructNo; in vehicle class, but it will explode anyway... I just want to destroy parachute and kill player in it, but without making an explosion... Thx
  12. Hi! I want to change group of some players in MP game. All is working fine with join command, but players that are hoining new group, still have their old numbers... So sometimes the new group looks like this: 1 4 5 (leader) 8 10 What I must do to have leader number 1, and all other units in proper order (1,2,3,4,etc)?
  13. Mr Groch

    FFN config replacement

    Yes, this looks OK. 2 shots in the chest with M4 and 1 shot, one kill with siper rifle But I think, that soldier die too fast when shooted in the leg or arm - only 2 shots...
  14. Mr Groch

    FFN config replacement

    I agree, "armor" for all units should be weaker...
  15. Mr Groch

    Editing Hit damage

    Yes, thx, it is working. Some other addon has overwritten my addon... I must find now wat is responsible for this :/ PS. Strange thing that even if I start arma with shortcut containing my addon as the last mod, it is still getting overwritten...
×