Jump to content

chronicsilence

Member
  • Content Count

    134
  • Joined

  • Last visited

  • Medals

Everything posted by chronicsilence

  1. chronicsilence

    Map Recommendation Request

    Thank you for all the suggestions. I value an intermediate to large size the most (as I said in OP, maybe about two-thirds the size of Altis), and then mostly having enterable buildings (they don't ALL have to be, but the vast majority should be). I'll check out Imrali, Wake, Gorgona, Pantheria, and NAPF to see what seems like the best fit.
  2. Well, that works pretty darned well, doesn't it.
  3. Ok, I'm trying to figure this out and not getting very far. I can add a magazine with a certain amount of ammo to the player using something like player addMagazine ["30Rnd_556x45_STANAG", 15]; and I can add a full magazine to a specific container on the player with something like (uniformContainer player) addItemCargoGlobal ["30Rnd_556x45_STANAG",1]; But is there any way to do both, and add a magazine with a specific ammo count to a specific container on the person (e.g. to their vest)?
  4. Let's say I have a Cfg defined: class CfgCustomThings { class thing1 { ID = 1; Val = "val1"; }; class thing2 { ID = 2; Val = "val2"; }; class thing3 { ID = 3; Val = "val3"; }; }; Is there any way to iterate over all of the entries in the Cfg? Something like this pseudocode: { hint _x >> "Val"; } forEach getArray(getText(configFile >> "CfgCustomThings")); I just need some way to get all of the classes within the config, without listing their class names specifically, and do something with them. Thanks! ---------- Post added at 17:05 ---------- Previous post was at 17:01 ---------- Nevermind, found it hidden in the BIS functions: BIS_fnc_getCfgSubClasses
  5. chronicsilence

    Map Recommendation Request

    No no, not asking anyone to build anything for me. I'm asking if anyone here knows of a decent pre-existing mod map that meets these criteria.
  6. chronicsilence

    Map Recommendation Request

    Bump?
  7. Hey everyone, I'm just looking for some clarification on a couple functions, since the documentation is rather... lacking. I have a large MP mission, and the player characters will randomly tell their group members various commands ("Enemy, 2 o'clock", etc.) and give various orders (make another group member get out of a vehicle). These things are a major pain in the ass and I would like to turn them off. However, I still want the players to be able to use VON group chat and type messages in group chat. It looks like there are three relevant functions that might help me with this, but I'm not clear on the differences between them, so I was hoping you could help: enableSentences enableRadio disableConversation What will each of the above do, and which is the one I want for this purpose? Also, will I have to run that command on every client or just the server? Thanks!
  8. Hi everyone, So I'm working on a script to play a sound from a vehicle in a multiplayer mission. Currently, I have it spawn a helper object to play the sound using "say3D", since I need to be able to cut the sound off early by deleting the helper object (if you play the sound directly from the vehicle with "say3D", you can't end it before the end of the sound file unless you delete the vehicle itself). The problem is, using BIS_fnc_MP to run the "say3D" command on every client (its effects are local) is causing significant network overhead and causing a noticeable delay before the sound is actually heard on the clients, so I'm looking for alternatives that are natively global. The other caveat is that it has to be an actual object that plays the sound, so I can attach it to the vehicle and have it stay with the vehicle as the vehicle moves. I've been looking into the "createSoundSource" command, which seems to be the best of everything. Its effects are global so I don't have to run BIS_fnc_MP, and it creates a sound source object that I can delete when I'm done with the sound. The problem is, it only seems to be able to play built-in sound effects. Does anyone know of any way to make it use a custom sound file that is in the mission file (i.e. one that every client already has in their mission file)? Or, if that isn't even possible, does anyone have any decent alternatives? Thanks!
  9. They're not really long sounds, only 3 to 5 seconds tops. I'm not worried about JIP for this application.
  10. PlaySound3D is great, except that you can't delete it mid-sound and you can't attach it to objects and move it (the sound will always play from the location that you initially created it). Unfortunately, that means I can't use it.
  11. Hey everyone, Does anyone know of a good way to drop grenades from vehicles? I'm trying to drop IR strobe grenades from vehicles via script. I can't seem to find a way to spawn in an active grenade (as if it had been thrown). Thanks!
  12. chronicsilence

    Dropping IR Grenades From Vehicles

    I think I figured it out. This is only an issue with the IR grenade, I think because it creates a light strobe effect and ARMA really doesn't like having dynamically moving lights (see: issues with #lightpoints). I switched it out to a Stone grenade instead and it works perfectly.
  13. chronicsilence

    Dropping IR Grenades From Vehicles

    Unfortunately, none of the special properties (including "CAN_COLLIDE") allow the object to fall to the ground. Any other thoughts?
  14. chronicsilence

    Dropping IR Grenades From Vehicles

    Interestingly, if I create a vehicle with the class name of the projectile ('B_IRStrobe', in this case) using _veh = "B_IRStrobe" createVehicle position (vehicle player); while hovering in the air, then it creates the IR grenade in the right location but it just hangs in the sky and doesn't fall to the ground. Any idea how to make it act like a real grenade that was thrown?
  15. chronicsilence

    Making Map Objects Invincible

    Yeah, it comes to the conclusion that those things aren't animated to save performance. They can still be knocked over though, and you can manipulate their damage value through scripts, which is kind of weird. In any case, maybe there's a way to delete them then?
  16. Hey folks, I'm having some difficulties here. I'd like to make the walls to one of the Altis military compounds invulnerable, so they can't be knocked over. I can get the object by its ID, but none of the standard methods to ignore damage seem to be working, it will still fall over if you hit it with a rocket. This is what I've tried: None of these things are working, and none of them are triggered when the wall is hit with something. Can you not add event handlers to map objects? I need SOME way to make these things invincible.
  17. Hi everyone, I'm creating lights to attach to a vehicle (emergency lights), using the following script: _newlight = "#lightpoint" createVehicle [100000,100000,100000]; _newlight setLightColor [1,1,1]; _newlight lightAttachObject [_vehicle, [-0.45, 0.0, 0.56]]; This is a simplified version, but you get the point. The light shows up in the correct spot and functions properly when the vehicle is stopped. However, as soon as the vehicle starts moving, the light bounces around on the vehicle and doesn't stay in its attached location. Once the vehicle stops again, it returns to its correct location. Anyone know why?
  18. chronicsilence

    Making Map Objects Invincible

    That is correct, it's a "mil_wallbig_4m" object at the compound just north of Athira on Altis. It's on the map by default. I would also be OK with some way of just deleting it, so I could put a new one on it in the editor and tell the new one to 'allowDamage false'. I can set its damage to 1 so it falls over and the ones I added are still there, but then I have a compound surrounded by knocked over walls hovering in the air. Unfortunately, I don't think it's possible to delete objects built into the map.
  19. chronicsilence

    Making Map Objects Invincible

    Tried this, it has no effect. As JShock said above, this won't work because the objects "aren't animated" and don't listen to event handlers.
  20. chronicsilence

    Scripting Discussion (dev branch)

    My understanding was that the developers weren't going to make it so that attached lights updated every render frame by default. However, I would think that there should still be a way to force something to update on the render frame since it's obviously done that way with vehicle headlights.
  21. chronicsilence

    Scripting Discussion (dev branch)

    So this brings up an interesting point. Using render time is excellent for drawing 3D icons or lines, and updates smoothly with vehicles moving at high speeds. However, is there a way to force something in the simulation to happen at render speed? For example, I have a #lightpoint object that I would like to attach to my vehicle. Under normal cirumstances using lightAttachObject, the light jitters and bounces around because it's only updating with simulation time whereas the vehicle's position is updating at render time. Even if I force it to update the lightpoint's position using modelToWorldVisual and onEachFrame, it doesn't help because it still doesn't update it's position until the next simulation step. What we need is a way to force something in simulation to happen at render time (like a "drawObject3D" function), because I really need these lights to update their positions as smoothly as 3D icons do.
  22. chronicsilence

    Attached Lights bouncing around

    Hilariously enough, this doesn't even work. It looks like the engine doesn't provide accurate position data on the vehicle every frame, so even if I force the position every frame, I can't force it to the proper location because I can't GET the exact proper location of the vehicle. EDIT: ok, I have more info on how this works. The modelToWorldVisual command will get the current, interpolated position of the vehicle with the given offset. However, using the setPos function with that position onEachFrame will still cause the jitter because the light's position isn't interpolated every frame like the vehicle is. So, what I need is a way to force the light's position to be updated every render frame instead of every simulation step. Similar to how the drawIcon3D function works.
  23. chronicsilence

    Attached Lights bouncing around

    Wouldn't they be local though? If a function is run using BIS_fnc_MP, then that function will be run on every computer. If the function is run on every computer, then that function should create local lights. If you create global lights on each computer, well now you've created 'NUM LIGHTS' * 'NUM PLAYERS'.
  24. chronicsilence

    Attached Lights bouncing around

    Yeah, after some more looking I found this: http://feedback.arma3.com/view.php?id=18337 Looks like BI knows but don't care. What about some creative thinking though, this is something that would benefit a lot of missions/mods if we could find a workaround. Any thoughts?
  25. I have an object that I would like to make non-interactable. It's a light source (specifically the construction cone with light), and I need to keep it so that the light still works (i.e. enableSimulation false is not an option) but it can't be moved or destroyed. If you put the allowDamage false on it, the light still stops blinking if you shoot it and it can still get knocked over. I also need to make sure that it doesn't become a rigid structure that things can hit. What I really need is a way to just make everything, including bullets and grenade shockwaves, go through it. Is there any command to do such a thing, that won't have a horrendous performance impact?
×