Welcome, Guest Monday 8th February 2010, 23:42:08
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: mk4_showInfo (seeing who's in your veh, and more)  (Read 552 times)
0 Members and 1 Guest are viewing this topic.
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« on: 29 Aug 2009, 01:02:24 »

In the void of spooner leaving us without spon_recognize and other goodies for arma 2, and me not knowing people were working on porting it, I made this little script a week ago which combines 3 of spooners addons I loved most ( recognize, crewNotify and status (to an extend)).

Features:
- Get a list of crew and cargo in your vehicle (works for multi-turreted vehicles as well)
- Have you own team highlighted in the list
- Get a count on how many cargo slots you have, and how many you have left
- Being able to see the crew and cargo list inside and outside of the vehicle(upto 15m distance).
- You're also able to use this on infantry to get their name, groupname, and rank (upto 10m distance)

So all in all this is kinda an extension to the spacebar menu.

An addon will probably come as soon as I figure out how to make an one Done Wink

Screenshots:
one
two


Script Version Instructions:
Just add the showInfo folder to your mission root, and add teh following line to your init.sqf:
Code:
[] execVM "mk4_showInfo\init.sqf";

Addon Version Instructions:
Copy all folders from the addon archive to your arma2 game directory.


And then press and hold the spacebar while in a vehicle or looking at a vehicle or infantry.


Special thanks to Spooner for his addons in arma 1, and his awesome coding in those which taught me a lot.  Good


Below an example mission, the script version, and the addon version (requires Extended EventHandlers). Readme's are included.

[DO NOT MIRROR]

* mk4_showInfo.utes.rar (7.24 KB - downloaded 18 times.)
* mk4_showInfo_script.rar (5.45 KB - downloaded 21 times.)
* mk4_showInfo_addon.rar (5.65 KB - downloaded 30 times.)
« Last Edit: 31 Aug 2009, 13:50:34 by mikey » Logged
Fincuan
*
Offline Offline


« Reply #1 on: 29 Aug 2009, 13:17:58 »

Nice one mikey, and works great Good

Re: the addon-version, here's a "quick and dirty" one that works. CBA is needed, DO NOT MIRROR

The only things that had to be changed were:
  • Adding a config.cpp
Code:
class CfgPatches
{
class mk4_showInfo_v01
{
units[] = {};
weapons[] = {};
requiredVersion = 1.0;
requiredAddons[] = {"Extended_EventHandlers"};

};
};

class Extended_PreInit_EventHandlers
{
mk4_showInfo_Init = "mk4_showInfo_Init_Var = [] execVM ""\mk4_showInfo_v01\init.sqf""";
};

  • Modifying the "client or addon"-version check to reflect and addon-version.
Code:
if ( !isNil "mk4_showInfo_CLIENT" ) exitWith {};
mk4_showInfo_ADDON = true;

  • Updating the various paths to point to the .pbo
« Last Edit: 29 Aug 2009, 13:28:03 by Fincuan » Logged
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #2 on: 29 Aug 2009, 17:26:37 »

Thanks fincuan, much appreciated  Good
Logged
kju
*
Offline Offline


WWW
« Reply #3 on: 29 Aug 2009, 18:30:11 »

Thanks to both of you.  Yes

As always my key configuration conflicts with hardcoded key use.  Whistle
Can you please make it configurable via an external file.
Here is a sample implementation.

Cheers  Good


* CLAY_CarRadio.zip (7.27 KB - downloaded 11 times.)
Logged
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #4 on: 29 Aug 2009, 21:05:42 »

Yes, I will Q
Logged
kju
*
Offline Offline


WWW
« Reply #5 on: 30 Aug 2009, 10:59:06 »

From testing the addon version in the rpt:

Code:
Error in expression <_this call mk4_fKeyUpHandler>
  Error position: <_this call mk4_fKeyUpHandler>
  Error Type Script, expected Bool
Logged
Kremator
*
Offline Offline


« Reply #6 on: 30 Aug 2009, 18:11:12 »

The addon version works very well.  Nice one !  Could it be made into a GUI ?
Logged
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #7 on: 31 Aug 2009, 13:31:14 »

New release in opening post:
- Made a new config
- Added the userconfig folder, so you can set your own key now if using the addon
- Fixed the bug kju mentioned
- Signed the addon


Special thanks to kju, fincuan, lwlooz and killswitch  Good


btw Kremator, what do you mean with a making it into a GUI?
« Last Edit: 31 Aug 2009, 13:33:37 by mikey » Logged
Fincuan
*
Offline Offline


« Reply #8 on: 31 Aug 2009, 14:18:08 »

Is it ok to spread the word at this point? I know at least one community that would highly appreciate your addon.
Logged
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #9 on: 31 Aug 2009, 14:27:52 »

Yeh, go ahead. I tested this addon with 5 other guys last night, and beside the bug Kju had which was fixed by lwlooz, this is a stable release now.
Logged
Fincuan
*
Offline Offline


« Reply #10 on: 31 Aug 2009, 16:48:46 »

That's what I figured. Even after several hours of play my .rpt is completely clean what comes to your addon, no entries at all.
Logged
kju
*
Offline Offline


WWW
« Reply #11 on: 31 Aug 2009, 17:40:33 »

Thanks a lot. Will test tomorrow.  Good
Logged
kju
*
Offline Offline


WWW
« Reply #12 on: 15 Dec 2009, 13:36:09 »

mikey the attachments were lost.
Can you please attach it again.

I want to integrate it into CB AAS.  Good
Logged
JamesF1
Editors Depot Staff
*****
Offline Offline



WWW
« Reply #13 on: 18 Dec 2009, 20:32:25 »

Bump Smiley  I have need of this little script - would be great if someone still has the attachment, as kju says  Good
Logged
Fincuan
*
Offline Offline


« Reply #14 on: 23 Dec 2009, 04:29:42 »

The original one doesn't work with 1.05 + latest CBA anymore. I didn't bother to look very deeply into it, so I just changed all displayAddEventHandler-commands to use CBA's CBA_fnc_addKeyHandler, and voila we're back in business.

In mikey's absence here's a slightly customized(don't have the original anymore), 1.05+CBA+ACE-tested working version

Do not mirror
edit: Link removed, the check for the correct one a few posts after this
« Last Edit: 26 Dec 2009, 21:59:37 by Fincuan » Logged
Pages: [1] 2  All   Go Up
  Send this topicPrint  
 
Jump to: