f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

Mine Mine Mine #25

Closed nerdalertdk closed 10 years ago

nerdalertdk commented 10 years ago

Warning untested code :) Have not tested this code since i'm not near my gaming PC

nerdalertdk commented 10 years ago

Still need to clean minefield.sqf up and remove all used code ohh yeah and test :smile:

f3cuk commented 10 years ago

Pulling this to test

nerdalertdk commented 10 years ago

Let me know how it goes :) I'm hoping for success

f3cuk commented 10 years ago

Currently stuck on finding the road flare (red one) class to replace with the one used now (which only works for like 10 seconds).

Redone this one, too much stuff we don't need.

nerdalertdk commented 10 years ago

What about the normal dayz flare ?

f3cuk commented 10 years ago

Yeah i dont know the classname and couldnt find it. Think i got it now though HandRoadFlare

nerdalertdk commented 10 years ago

But the mines are working ?

f3cuk commented 10 years ago

Nah that file you added just produced a lot of errors and the code was one big spaghetti of death. I'm trying to simplify and redo it.

HandRoadFlare did not work :(

nerdalertdk commented 10 years ago

The classname for the burning one is just roadflare

Taken from epoch code

    if (_ammo isKindOf "RoadFlare") then {
            //hint str(_ammo);
            _projectile = nearestObject [_unit, "RoadFlare"];
            _id = [_projectile,0] spawn object_roadFlare;

            /* PVS/PVC - Skaronator */
            _pos = getPosATL player;
            _inRange = _pos nearEntities ["CAManBase",1250];
            {
                if(isPlayer _x && _x != player) then {
                    PVDZE_send = [_x,"RoadFlare",[_projectile,0]];
                    publicVariableServer "PVDZE_send";
                };
            } count _inRange;

            _id = _this spawn player_throwObject;
        };

Will at it later tonight

nerdalertdk commented 10 years ago

Even better https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/compile/object_roadFlare.sqf

nerdalertdk commented 10 years ago
        _marker_add = "RoadFlare" createVehicle getPosATL _box;
    _marker_add setPosATL (getPosATL _box);
    _marker_add attachTo [_box, [0,0,0]];
        _flare_light = [_marker_add,0] spawn object_roadFlare;

Try this

f3cuk commented 10 years ago

Will do. Got the mines working, they are awesome. Only problem, they dont touch of with vodniks xD Work perfectly for thanks and urals though lol

nerdalertdk commented 10 years ago

Witch mine class are you using ?? There are mine and minee I think

Can we make something like

While(_playerpresstent) {
    if (nearestObjects [vehicle player, ["Wheeled_APC"], 3]) then {
        BOOM MINE MINE MINE
    }
}
f3cuk commented 10 years ago

MineE. Both mines have the same config, just different models. There is also a MineGeneric or something like that. Might try that one.

nerdalertdk commented 10 years ago

Did you fix the vodnik vs. Mine's ???

f3cuk commented 10 years ago

Think i did yeah

nerdalertdk commented 10 years ago

Nice can't to load on the my servers :)

f3cuk commented 10 years ago

:+1:

I've released 2.0.0 and made a new topic on the epochmod.com forums.

Thanks for all your help on this!

nerdalertdk commented 10 years ago

Well I'm ready for 2.1.0 can't wait for the c130 mission and the hostage :)