Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

Sexacutioner

Member
  • Content Count

    133
  • Joined

  • Last visited

  • Medals

Everything posted by Sexacutioner

  1. Any way to make an ammo crate immobile so people can't push them around with tanks? ---------- Post added at 03:46 ---------- Previous post was at 03:38 ---------- Well, just found a workaround; not sure if there is a better way. I attached the crate to a small helper object sphere. Here is how I made 3 object immoble: store1 allowDamage false; storeCrate1 allowDamage false; storeCrate1 attachTo [store1]; store1 attachTo [sphere1];
  2. Sexacutioner

    Immobile Crate

    Ahh nice, I'll have to try that out.
  3. I have a dialog with multiple listboxes but only one should be selected at a time. Is there a way to remove a listbox selection? I have tried: lbSetCurSel [103, -1]; lbSetCurSel [103, null]; lbSetCurSel [103, void]; lbSetCurSel [103, Nothing]; with no luck...
  4. Here is the whole script. Just testing some stuff for now if it seems "weird" :). _victim = _this select 0; _killer = _this select 1; _killerSide = side _killer; _victimSide = side _victim; titleText [ format["I'm Dead %1 %2",typeOf _killer ,_victimSide] , "PLAIN"]; markerCounter=markerCounter+1; _marker = createMarker [ format["marker%1",markerCounter] ,position _victim]; _marker setMarkerType "Faction_INS"; _victim addAction ["Get Money", "getRabbitMoney.sqf",_marker]; if (typeOf _killer=="Rabbit") then { [_victim,_marker] execVM "waitForDelete.sqf";}; The problem is if I put the if statement on multiple lines it throws an error. However this type of conditional works in the init.sqf. I found a similar problem trying to use a "while" on multiple lines. ---------- Post added at 04:19 ---------- Previous post was at 04:17 ---------- Oh and sorry to disappoint, rabbits aren't killing cows. I'm testing different animal spawning and didn't change my variable over. The cows are now rabbits....
  5. Why does this work? if (typeOf _killer=="Rabbit") then { [_victim,_marker] execVM "waitForDelete.sqf"; }; But this throws an error: '|#|};' Error Missing { if (typeOf _killer=="Rabbit") then { [_victim,_marker] execVM "waitForDelete.sqf"; }; Script is being called on death: _currentCow addEventHandler ["killed", {_this exec "cowKilled.sqf"}];
  6. I've been programming multiplayer missions for OFP for years now and just recently started messing around with Arma II. I just have a quick question on server locality checking and if anything has changed since OFP. In OFP I create a game logic named server and then do this: ? local server: Has Arma 2 introduced any new commands to check this or is it the same ol' method?
  7. Sexacutioner

    Progress Bar?

    I'm working on a capture point map where you need to sit on a point for a certain amount of time to capture it. I'm going to try and hack some sort of progress bar on the screen, but thought I would ask if something like this has done before because I'm not completely sure where to begin. A dialog slider control hack was my first thought...
  8. Sexacutioner

    How to make a BIN file to CPP?

    Toward the bottom of this page http://www.opflashpoint.org/mission_tools.php Is a bin to cpp that might be useful. Also I downloaded this some time ago: http://ofp.ruprt.cz/ofpmde/default.aspx?Lang=en The only thing I use out of it is the PBO Manager tool. It has a checkmark for when you extract a .pbo to also decode BIN files. Pretty good all in one step tool.
  9. Sexacutioner

    I dont hear DIRECTION of sound effects

    Actually turning EAX off is recommended. EAX can cause you to hear some sounds from across the map.
  10. Sexacutioner

    3d objects in dialogs?

    Worked out how to add 3d objects, but there is a lot of things associated with it I have no idea what they do. Anyone know of any more information available with adding 3d object controls?
  11. Reading through this: http://community.bistudio.com/wiki/Dialogs It says: "Controls are the actual content of dialogs and can be anything, ranging from simple solid rectangles to a complex 3d object within a dialog" I've been searching around but haven't found any information on what it means by 3d objects.. I downloaded a dialog maker program and in the readme it says: "OFPDM can only create 2D menus for the time being" Anyone have information on what the 3d stuff is in dialogs?
  12. Sexacutioner

    3d objects in dialogs?

    Sounds cool, thanks for the help!
  13. Hey. Looking through the documentation for something like a for/next loop or a loop that increments a number. Like in some other code it would be written: for (count=5;count<=10;count++) { } The closest thing I found was the "while do code". This would work, but it would just be more efficient using a for/next, so just checking if that exists. Example of while/do with the same loop: count=5 while count<10 do {count=count+1} ---------- Post added at 02:47 PM ---------- Previous post was at 02:33 PM ---------- Nevermind, I just found out from here: http://community.bistudio.com/wiki/Control_Structures#Loops That it doesn't exist in OFP.
  14. Sexacutioner

    Trouble with "OR" (||)

    You are right on needing AND, sorry. I've been trying so many variations of this I went and confused myself. Anyway, this does not seem to work either: ?((player!=attacker1) && (player!=attacker2)) : hint "Can only be taken by east."; exit; And yes attacker1/2 are two different units on the east side. West side has defender1/2 names.
  15. Having a little trouble figuring out the if/then/or syntax. For instance this script works: ?(player!=attacker1) : hint "Can only be taken by east."; exit; ?(player!=attacker2) : hint "Can only be taken by east."; exit; But this returns false no matter what player uses it: ?((player!=attacker1) || (player!=attacker2)) : hint "Can only be taken by east."; exit; I've tried many different ways to write it and moved parenthesis around but I cannot seem to figure out what I'm doing wrong.
  16. Sexacutioner

    OFP Servers?

    Would a OFP server even make use of multi-cores? To answer your question, you could look up renting any dedicated server that allows you to install your own stuff. There are plenty out there like that.
  17. You might want to take a look at this mission/script: http://thecardchest.com/bwpp_weaponsbuy_v1.zip I don't remember where I found it unfortunately. Searched the net for a bit, then decided to just upload the file to my server so you can take a look. There is a screenshot inside the .zip of how the menu looks in game. I did not make this.
  18. Hey all. I just recently started getting into OFP again. Been spending the last couple weeks getting up to speed and tweaking the game with the latest mods. Now I'm knee deep in the editor working on a MP mission to play against my brother in. Which incidentally my brother was one of the people who made the "legawarz" mod. Originally "lego" they got popular enough to get a c&d from lego company which at the time was actually pretty exciting :).
  19. I just recently started playing OFP again on my modern pc. I agree that ArmA is better suited for today's pc, as I can run that full settings without a hitch, however OFP still stutters :). I don't see myself needing to buy a new graphics card for a few more years and mine is already a couple years old. Your point may have been valid some time ago, but anymore there is maybe 1 or 2 games that come out a year that really take advantage of pc graphics. Most of them are just XBOX ports so you can run them on anything...
  20. Sexacutioner

    GRAA Modpack 3.0

    Yes, I got it! Thanks so much for your help! Your last explanation helped a lot. The problem was I was confusing face texture that is set in options with something in the addons directory. Once I realized that I went and changed it to default texture in the options and it worked. I dunno if I was using a custom or it was broke or what (it's been years since I've ran the game!), but it's working now :). Cool, well if you'd like anything for your troubles, I can offer hosting space for your mods if you like. ..or a free card from my site (http://thecardchest.com/) :eek:!. Would like to pay back for your help as I've been messing with this for days!. It's great you are still supporting your mod, I wasn't sure if anyone was left still playing OFP :).
  21. Sexacutioner

    GRAA Modpack 3.0

    Hmmm. I have some addons that I've downloaded but a mod is the only thing that can replace the default faces correct? In the screenshot I'm using WEST-Officer. And as shown it is working on the AI unit that is the exact same unit. Looks great btw :). Do I need to use a custom face or is this mod supposed to replace the defaults? As a test I went through every unit on the west side and tested it. A few of them are addons with default BIS head and when I use them, the AI is messed up and the player looks normal. All others the player is messed up and the AI looks normal. It is as though the player has the BIS head and all other units are using the new one. I'd be willing to test out things in my config if I knew what I was looking for :). Does OFP cache anything to do with mods. What I mean is since I first tried the GRAA+ECP and then switched back to GRAA default, would ofp have saved anything permanently to make my game different? It just seems strange that it's only affecting me when the files should be exactly the same that I downloaded.... Hmmm. ---------- Post added at 06:55 PM ---------- Previous post was at 06:40 PM ---------- In case it helps, I used a script to get a front shot of the player and AI: As you can see they are both the same unit, however the player (left) is using a different head than the AI unit.
  22. Sexacutioner

    Ammo disappearing in crate

    Just had a chance to test this out. I only added a couple things to the ammo crate and no more disappearing magazines. Thanks for the help! I didn't realize there was a limit to the ammo crate storage.
  23. I've added a couple weapons and mags to a crate. One in particular I only added one magazine for the weapon. I noticed a problem testing however. I take the weapon from the crate, which gives my character the weapon with a full clip. I exchange (take/drop) the weapon for another one and then take the weapon again. This time there is no extra ammo for it. What happened to the magazine?
  24. Sexacutioner

    GRAA Modpack 3.0

    Hmm, I wonder why I'm getting this if it works for other people. Is there something I can look for in the config.cpp to try changing maybe? Here is what I am seeing: The player (me) is on the right and the left is an AI unit I added. As you can see the right texture is not correct, but the left one is. I tried using a downloaded unit with the BIS model and the opposite happens. Then the right one is correct and the left one is wrong. Seems like I can't have both :). At first I tried installing the GRAA/ECP version, however after I noticed this problem I went and recopied over GRAA fresh and started the game with the mod without any changes made to the files but problem is still there. Commenting/Uncommenting ENABLE_BIS_FACES seems to have no effect either. Wonder if re-installing OFP would make a difference?
  25. Sexacutioner

    GRAA Modpack 3.0

    Thanks for the reply on this. I'm only using the original game units for this. It works for non-player characters. They have the correct head. It just doesn't work for players when selecting the same unit.
×