drsubo Posted December 11, 2014 Report Share Posted December 11, 2014 Ive got the ai working just fine, but the static boxes are a thing...howd you get the ai working just fine. How did you get them to do damage. when player loading in it sets to no damage so unless you die and start fresh on server after the ai have spawned the don't do damage. whats the trick to get around it? Link to comment Share on other sites More sharing options...
Creep Posted December 11, 2014 Report Share Posted December 11, 2014 howd you get the ai working just fine. How did you get them to do damage. when player loading in it sets to no damage so unless you die and start fresh on server after the ai have spawned the don't do damage. whats the trick to get around it? Magic. Well they are standing around before you shot at them, but the time they spotted you.. you will have a hard time^^ Link to comment Share on other sites More sharing options...
Creep Posted December 11, 2014 Report Share Posted December 11, 2014 Tryed out some new ways, they worked out pretty well, AI is fully functional now and the crate is persistant unfortunately I have a little problem with the cleanup... How to scan if all units of a group are dead? Otherwise I would need to scan if a player was in range of the markerpos (guess this would be easier but still idk how to do it from a HC is it going to work using forEach playableunits ? using the CIV faction aas argument for the playable units) Link to comment Share on other sites More sharing options...
ProtossMaster Posted December 11, 2014 Report Share Posted December 11, 2014 DZMS's successor will come when the Epoch devs allow the server files to be open. Battleeye filters are a pain, and I rather see everything I'm working with when I do work on it, instead of trying to write code that nulls out code in other files that I'm not allowed to modify. Missions should be server code, and should be on the server side IMO. As for running code on the server side from the client, you can do so without needing to touch any server files. There are isServer/isClient commands for a reason. Other than the incompatibilities that DZMS has with Arma3, and the limitations the Epoch Dev's have coded in, you could almost just stick the DZMS launch in the Init and just throw an isServer IF around it and call it a day. You could also just create a 2nd pbo on the server side and throw it in the addon's folder. Like you could just throw all the dzms code into a new pbo, change file paths and create a .cpp file Link to comment Share on other sites More sharing options...
uniflare Posted December 11, 2014 Report Share Posted December 11, 2014 Tryed out some new ways, they worked out pretty well, AI is fully functional now and the crate is persistant unfortunately I have a little problem with the cleanup... How to scan if all units of a group are dead? Otherwise I would need to scan if a player was in range of the markerpos (guess this would be easier but still idk how to do it from a HC is it going to work using forEach playableunits ? using the CIV faction aas argument for the playable units) You have a server side only solution? To cleanup, are you assigning your units to a group? Can you set a counter and maybe new pvar for the ai-alive-count. On unit killed -1 from pvar til 0 or til timer runs out and then cleanup/end mission? Link to comment Share on other sites More sharing options...
Creep Posted December 11, 2014 Report Share Posted December 11, 2014 My script is based on a HC (likely serverside), and I can tell that there is only a minimal less performance/fps, I could barely tell if there was any .. Iam adding my units to a group so that would communicate and also its a bit easier to handle Thanks for your suggestion! I will try to add a eventhandler if thats possible. My current cleanup only works for the mission time which counts down and then despawn the whole thing. currently Iam trying to solve the cleanup first then I will work on the messages to show up, which is a bit tricky as a HC as of what I found out yet. The only bug that currently accrued was the heal-from-actionmenu shown up again, but that only happened once, idk why. The rest does not throw up any error, not on HC not on client (cuz there isnt any code on client side) It would be nice if anybody had a list of static guns, guns that are used in Epoch and Epoch items since I will need them for the rewards :S Link to comment Share on other sites More sharing options...
vetka Posted December 11, 2014 Report Share Posted December 11, 2014 We did it. It was hard to re-write from the scratch. But it works. Link to comment Share on other sites More sharing options...
TheVampire Posted December 12, 2014 Report Share Posted December 12, 2014 Tryed out some new ways, they worked out pretty well, AI is fully functional now and the crate is persistant unfortunately I have a little problem with the cleanup... How to scan if all units of a group are dead? Otherwise I would need to scan if a player was in range of the markerpos (guess this would be easier but still idk how to do it from a HC is it going to work using forEach playableunits ? using the CIV faction aas argument for the playable units) _units = units group; Returns an array of all the units in the group which you can then feed into a foreach. Link to comment Share on other sites More sharing options...
horbin Posted December 12, 2014 Report Share Posted December 12, 2014 Creep, See this thread: for an item list I put together this evening. Link to comment Share on other sites More sharing options...
Creep Posted December 12, 2014 Report Share Posted December 12, 2014 _units = units group; Returns an array of all the units in the group which you can then feed into a foreach. Question is if this going to return only the alive units Link to comment Share on other sites More sharing options...
Steven1230 Posted December 12, 2014 Report Share Posted December 12, 2014 One thing I would like with current AI missions and future AI missions is a way to adjust/lower the Aimbot on them >_>. No need to have them running around with crappy sub machine guns and getting a head-shot from 100m away instantly. What fun is that when you cant even have a little battle with them? lol Go into action, hide in spot get ready to shoot them and boom dead with a head-shot each time within the first 2 sec. Even when in good cover. Maybe my AI system is just bugged idk. Link to comment Share on other sites More sharing options...
TheVampire Posted December 12, 2014 Report Share Posted December 12, 2014 Question is if this going to return only the alive units It will return all units in the group, then you would put them through a foreach that removes dead units to get what you want. { if (alive _x) then {}; } foreach units group; etc Link to comment Share on other sites More sharing options...
Creep Posted December 12, 2014 Report Share Posted December 12, 2014 It will return all units in the group, then you would put them through a foreach that removes dead units to get what you want. { if (alive _x) then {}; } foreach units group; etc deleteing the dead units wouldnt be good for the loot.. so why shouldnt we do it this way: { if !(alive _x) then {_x leaveGroup _groupname }; } foreach units _groupname; if ((count units _groupname) < 1) then {_running=false }; Link to comment Share on other sites More sharing options...
uniflare Posted December 12, 2014 Report Share Posted December 12, 2014 Should be fine to leave dead ai I guess. I'm using the example in the ai/hc thread. Seems to run perfectly fine for me. Not sure if the cleanup only cleans live ai? Not at PC atm lol Link to comment Share on other sites More sharing options...
Creep Posted December 12, 2014 Report Share Posted December 12, 2014 Has anybody found out how to send a message to all players? Link to comment Share on other sites More sharing options...
This is WAR Posted December 12, 2014 Report Share Posted December 12, 2014 https://community.bistudio.com/wiki/globalChat Link to comment Share on other sites More sharing options...
Creep Posted December 12, 2014 Report Share Posted December 12, 2014 I would like to do hints :S Link to comment Share on other sites More sharing options...
This is WAR Posted December 12, 2014 Report Share Posted December 12, 2014 https://community.bistudio.com/wiki/hint :) Link to comment Share on other sites More sharing options...
Creep Posted December 12, 2014 Report Share Posted December 12, 2014 system, side and other chats as well as hint arent working if you call them from serverside scripts (at least if I try to) thanks for your help but I tryed all of this already.. :S Link to comment Share on other sites More sharing options...
This is WAR Posted December 12, 2014 Report Share Posted December 12, 2014 i am using the ai script over HC .. and in this variant Hints are running ... i assume you are not using the HC ? Link to comment Share on other sites More sharing options...
Creep Posted December 12, 2014 Report Share Posted December 12, 2014 went to serverside Version 0.7 current 0.9 Link to comment Share on other sites More sharing options...
drsubo Posted December 13, 2014 Report Share Posted December 13, 2014 what did you do to go server side. do ai do damage if its your first load in or do you have to die first Link to comment Share on other sites More sharing options...
Diceman Posted December 13, 2014 Author Report Share Posted December 13, 2014 creep are you going to share this? Link to comment Share on other sites More sharing options...
Creep Posted December 13, 2014 Report Share Posted December 13, 2014 Yep, when Its done. @drsubo There is a weired thing... I can run it serverside w/o any problems but when I try to put it on another server, the bug occurs. You can switch the whole thing to a HC without aby error to prevent it. Atm Iam adding a convoy script, but I haven't had the chance to test it yet. Today's plan is to get vehicles to work Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now