Jump to content
chief_wiggum

[WIP-Report] Advanced Civilian Interaction Menu

Recommended Posts

Hey folks!

Recently a friend of mine asked me to create a simple civilian-interaction script.

He only wanted the basic functions like telling civs to stop,go,....

But (un)fortunately it all degenerated a bit, and i came up with a not so basic Script, which i would like to share with you guys.

Note: THIS IS STILL WIP!

So lets take a look:

Actions:

These are the actions i've scripted up to now:

-order civ to stop

-order civ to go

-order civ to get down

-order civ to get up

-handcuff civ

-lead civ away

-put civ in vehicle

-pull civ out of vehicle

-search civs shirt

-search civs pants

-search civs shoes

-search civs backpack

-question civ

-view civs ID-card

-order civ to follow you

-take and give items from/to civ

Dialog:

These actions are all packed into a interactive dialog, which looks like THIS.

The dialog for the ID-card looks like THIS (The text is still a bit buggy).

How to set it up:

-put the CW_ACIM folder into your mission

-put the stringtable.csv into your mission

-add this to your init.sqf: execVM "CW_ACIM\ACIM_init.sqf";

-add this to your description.ext: #include "CW_ACIM\Dialog\UI\ACIM_ui_include.hpp"

If your using CBA and want to use the very WIP sounds, than you also have to add this:

class CfgSounds
{
sounds[] = {};
class getdown
{
	name = "get_down";
	// filename, volume, pitch
	sound[] = {"CW_ACIM\Sound\getdown.ogg", 1, 1};
	titles[] = {};
};
class handcuff
{
	name = "handcuff";
	// filename, volume, pitch
	sound[] = {"CW_ACIM\Sound\handcuff.ogg", 1, 1};
	titles[] = {};
};
class zipper
{
	name = "zipper";
	// filename, volume, pitch
	sound[] = {"CW_ACIM\Sound\zipper.ogg", 1, 1};
	titles[] = {};
};
};

How to configure it:

I'm trying to make it as configurable as possiple.

That's what you can set up for now.

-possible birthplaces:

-Open \CW_ACIM\Configuration\placeofbirth.sqf

-Add the place you want to the ACIM_PlacesOfBirth array.

-It's now added to the random selection.

-guaranteed virual items for 1 unit

-add this to the unit's init:

_nil = [this, "SHIRT ITEM", "PANTS ITEM", "SHOES ITEM", "BACKPACK ITEM"] execVM "CW_ACIM\Scripts\User\user_variables_items_add.sqf";

If you're using the addon version, the path is: \cw_acim_002\CW_ACIM\Scripts\User\user_variables_items_add.sqf

If you want only want to add a garanteed item for 1 garment, then set the other ones to nil.

This would only add a garanteed pants item:

_nil = [this, nil, "PANTS ITEM", nil, nil] execVM "CW_ACIM\Scripts\User\user_variables_items_add.sqf";

-ID-card info for 1 unit

-add this to the unit's init:

_nil = [this, "NAME", "AGE", "PLACE OF BIRTH", "ANSWER"] execVM "CW_ACIM\Scripts\User\user_variables_info_add.sqf";

If you're using the addon version, the path is: \cw_acim_002\CW_ACIM\Scripts\User\user_variables_info_add.sqf

you can also use nil

-possible virtual items:

-Open \CW_ACIM\Configuration\items_X.sqf (X = Shirt,Pants,Shoes or Backpack)

-add ["ITEM NAME", X] to the respective array. (X = number from 1-10. 1 = will be found really seldom. 10 = will be found mostly ever

Note: Only the last array entry doesnt has a , behind it!

-It's now added to the random selection.

-possible answers

-Open \CW_ACIM\Configuration\answeres.sqf

-Same principle as above.

-possible Ages

-Open \CW_ACIM\Configuration\ages.sqf

-Add the age you want to the ACIM_Ages array.

-It's now added to the random selection.

-Ranges for different speech volumes (whisper,normal,yelling)

-Open \CW_ACIM\Configuration\acim_setup.sqf

-See //Speech-Volume setup section

-You can also setup the default volume, if you are experienced.

-enable/disable Action Menu entry

-Open \CW_ACIM\Configuration\acim_setup.sqf

-See line 10.

Hotkeys:

Because it takes pretty long to open the dialog and click stop,go....

i've also done some hotkey stuff.

You can assign them ingame in:

CONFIGURE\CONTROLS\Custom Conrols

-Use Action 1: STOP

-Use Action 2: GO

-Use Action 3: GET DOWN

-Use Action 4: GET UP

-Use Action 5: SET SPEECH VOLUME

-Use Action 6: OPEN ACIM-DIALOG

How to use it ingame:

~I will add a detailed description soon.

For now: Spawn some empty vehicles, yourself (BLUFOR), and civs in the editor and play around with it.

Thanks and stuff:

[AWC]Adrian - Idea and MP testing

[101st.AD]Hoegnison - awsome german scripting tutorials (

)

Bohemia Interactive - ArmA

the guys i've forgotten

Downloads:

ACIM V0.2(script version) - DOWNLOAD (DROPBOX)

ACIM V0.2 (addon version)(requires CBA) - DOWNLOAD (DROPBOX)

Changelog:

CURRENT VERSION: V0.2

//07.12.2014

-added: "follow" action [still wip]

-added: admin console [only in MP if logged in as admin]

-added: inventory system ["TAKE" and "GIVE" only works in SP for now!]

-added: gestures when jusing "SHOUT" actions

-fixed: tons of bugs

-changed: new dialog [Pls give feedback!A friend had problems with shifted GUI-elemts.]

-etc... full changelog soon

//16.11.2014

-added: Addon-Version to main forum post

//15.11.2014

-first WIP release (v0.1)

~Chief

Edited by AWC_Chief_Wiggum

Share this post


Link to post
Share on other sites

Hey looks really good if you are taking any suggestions for you work in progress I would like to give one. With the lack of scripts for hostile Armed civilians if your script could add a % of armed civilians. This would really make your script shine function and real use for mission. Now if you approach civilians to interact with them you won't know if they will shoot you Or try to blow you up. Arma3 is lacking civilian scripts With real functions to use.

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Thank you guys for the feedback!

And also thanks to Fox for the Armaholic post!:)

@AVIBIRD 1

Yes! Things like this are planned for the future, but for now performance and bug-fixes have top priority.

@BusterBlader and @Kremator

Although i'm not that experienced in config stuff....:cool:

ACIM V0.1(addon version)(requires CBA) - DOWNLOAD (Dropbox)

NOTE: (path changes)

-guaranteed virual items for 1 unit

-add this to the unit's init:

_nil = [this, "SHIRT ITEM", "PANTS ITEM", "SHOES ITEM", "BACKPACK ITEM"] execVM "\cw_acim\CW_ACIM\Scripts\User\user_variables_items_add.sqf";

If you want only want to add a garanteed item for 1 garment, then set the other ones to nil.

This would only add a garanteed pants item:

_nil = [this, nil, "PANTS ITEM", nil, nil] execVM "cw_acim\CW_ACIM\Scripts\User\user_variables_items_add.sqf";

-ID-card info for 1 unit

-add this to the unit's init:

_nil = [this, "NAME", "AGE", "PLACE OF BIRTH", "ANSWER"] execVM "cw_acim\CW_ACIM\Scripts\User\user_variables_info_add.sqf";

you can also use nil

-----

I will post a "furure plans" list, in the next days.

Also feel free to suggest your ideas!

~Chief:chef:

Edited by AWC_Chief_Wiggum

Share this post


Link to post
Share on other sites

This sounds great, on mobile but sounds like exactly what I am looking for for Grand Theft Altis RPG. Assuming this works for multiplayer. Will be making a thread with a bunch of questions, and I believe this will be a great script to use.

Share this post


Link to post
Share on other sites
Guest

Thanks for the info about the addon version, it is now also availbale on Armaholic.

New addition frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

New mod 0.1-beta available at withSIX. Download now by clicking:

banner-420x120.png

@AWC_Chief_Wiggum;

You are now able to manage your own promo pages of your content on our web platform and soon also publish new content yourself.

To do so, please hit 'this is me' button on the page while logged in and follow the quick and safe claim procedure to get connected to your work.

For now you can send new content or releases our way through withsix.wetransfer.com or add your notification at getsatisfaction.withsix.com.

Share this post


Link to post
Share on other sites

Great job!

Idea for you, get it into somthing like the game " Papers please"?

Would be fun to set up a border control an check players papers ID :)

Share this post


Link to post
Share on other sites

Does this work on players/multiplayer? Tested some of it out. Interface is a bit choppy but I like it and will definitely be using it with my police mission.

Share this post


Link to post
Share on other sites

Great job with this script! I am looking forward to your updates. I was just playing around with it, had 3 civilians and a civilian SUV, and found that the civilian does not always sit in a seat when placed in a car. Sometimes, and it seemed to depend on the angle you were standing to the vehicles center-line, they would sit or stand, and when standing there body from waist up was over the roof of the SUV. Also, I found that if you cuff, escort, and place them into a vehicle; you will not be able to escort another civilian. It says you are already escorting someone. I am not sure if this is possible, and idea would be to have the civilian in the seat that relates to where you are standing next to the car, with exception of driver seat of course. Thanks!

Edited by tazmania720

Share this post


Link to post
Share on other sites

Hey Guys!

So....

@EpicGoldenWarrior

It was actually planned to be a script/mod, that allows you to interact with AI.

However, actions like search,handcuff,escort.... should work on real players too.(not tested)

"stop" and "go" won't work.

Real player interaction stuff is planned and will be optimized in the next versions.

@tazmania720

These are known bugs, and should be fixed in the next version(s).

(Maybe the "cuff, escort, and place them into a vehicle" bug won't be fixed that fast)

@Mr-Pink

There's no issue tracker yet.

If you have any issues, feel free to post them here or PM me.

(PM is probably the better way, because we don't want to spam this forum, right?;))

Unfortunately, I do not have much free time currently, so i can only release new versions at weekend.

Share this post


Link to post
Share on other sites

Hey, I know this might be kinda dumb but is there any way that I can get only 1 part out of the entire script with an addaction?

I just want to be able to see their ID.

:/ Thats all. :S

Share this post


Link to post
Share on other sites

@EpicGoldenWarrior

Yes it's possible, but the files are all kinda interdependent so it wont be that easy.

Just take a look at CW_ACIM\Dialog\UI\ACIM_Info.hpp and see which scripts are required and take a look into them, in order to see which variables and stuff are necessary to run correctly.

But if I see you releasing parts from the main script without credit, we won't become that good friends...;)

~Chief:chef:

Share this post


Link to post
Share on other sites

Used it with COS and civ opinions. Idk how opin even works so either it didnt work or I did it wrong or its not visible, but, works with COS. If that helps. At all.

---------

Taking it apart is too difficult. Prolly will just not do it.

Share this post


Link to post
Share on other sites

Hey Guys,

there actually shouldn't be any conflicts with AGM. (not tested)

-------------------------------------------

I'm looking forward to release a new version this Sunday (7.12.14).

The performance will be extremely improved, and it will also have a brand new dialog, because the current one is way to bugy and chunky.

Also there will be many bug fixes.

~Chief:chef:

Share this post


Link to post
Share on other sites
Guest

Thanks for the info about the new versions :cool:

New addition frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means soon you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×