Arma 3
90 ratings
AZC Dogs
2
2
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
3.476 MB
24 Mar, 2023 @ 12:30pm
7 May, 2023 @ 10:39pm
5 Change Notes ( view )

Subscribe to download
AZC Dogs

Description
This is a mission making tool for single-player. Two modules appear under Ambient on the F5 menu. It's super easy to use, allowing you to spawn single or multiple dogs. Single dog can be attached to player for giving commands. Packs of dogs can be spawned, either friendly or rabid.

This is as much the work of JBOY as it is mine. I took the original JBOY Dogs and turned it into map modules that are easy to use. No complex scripting. Here is what you should know:

https://forums.bohemia.net/forums/topic/241772-azc-dogs/

1) AZC Dogs converts JBOY dogs into a pbo addon
2) Cleaned up sections of the original scripting while adding in totally new functionality
3) Placeable map modules (one for solo and one for packs) that makes mission making easier
4) The option to create friendly packs or rabid packs

New functions added by AZCoder:
class DelayBark {};
class DogDrool {};
class DogVest {};
class GetDogPos {};
class GetNearestHuman {};
class InitDog {};
class InitPack {};
class LiveFeed {};
class PackAttack {};
class PackBehavior {};
class PackCleanup {};
class PackCreate {};
class PackFriends {};
class PackTrack {};
class PiP {};
class ShowDogSubtitle {};

HOW TO USE:
1) F5 -> Ambient -> picks one of two modules: AZC Dog Solo or AZC Dog Pack

2a) Dog Solo is intended to work with a handler which must also be specified.
i. Handler should be either 'player' or left empty. You may also use the name of the player object. AI cannot command dogs.
ii. If empty, this creates a single dog that will follow the Arma 3 engine rules and wander off eventually.
iii. 'Use handler voice for commands' will use custom dialog that was created for my Dark Tides campaign. If you do not select this, then the dog will be used normal squad commands like 'form on me' instead of 'heel'.

2b) Dog Pack creates 1 to 4 dogs that will roam around the area of the module. If rabid is checked, they will attack anyone that gets near them, otherwise they will bark happily at the sight of humans and run around. Note that the rabid dogs may not be as dangerous as some players may prefer. I may adjust this later on with feedback.

Players can identify rabid dogs because they drool and they tend to growl or howl at them. Friendly dogs will just bark and follow you around for a short distance before going back to their initial position. Rabid dog packs will try to kill you and anyone else around.

A solo dog can be reference by simply putting a name in the module. For example, Variable Name 'SoloDog'. Then you can issue script commands to SoloDog, such as 'SoloDog distance player' in the debug console. If you have a dog with a handler, you can reference him by the variable 'vDog'. Such as 'player getVariable "vDog"'.

How does one use that camera on the dog's back? There are 2 functions you need to know: AZC_fnc_LiveFeed and BIS_fnc_liveFeedTerminate. The latter one terminates the feed. If you want to give the player control over the camera (recommended), one easy way is to create a pair of triggers. This will work:

trgCameraActivate = createTrigger["EmptyDetector",[0,0,0]];
trgCameraActivate setTriggerStatements ["true","",""];
trgCameraActivate setTriggerText "Activate Camera";
trgCameraActivate setTriggerActivation ["ALPHA","PRESENT",true];
trgCameraActivate setTriggerStatements ["this","[(player getVariable 'vDog'), player, 0] call AZC_fnc_LiveFeed;",""];

trgCameraDeactivate = createTrigger["EmptyDetector",[0,0,0]];
trgCameraDeactivate setTriggerStatements ["true","",""];
trgCameraDeactivate setTriggerText "Deactivate Camera";
trgCameraDeactivate setTriggerActivation ["BRAVO","PRESENT",true];
trgCameraDeactivate setTriggerStatements ["this","[] call BIS_fnc_liveFeedTerminate;",""];

You can place them in your init.sqf script, or create triggers on the map. This will create an Alpha and Bravo trigger. Let's look at the paramters for AZC_fnc_LiveFeed:
[(player getVariable 'vDog'), player, 0]

The first part gets a reference to the dog, player must be player (don't change it), and the number is what visual mode you want to use. In daylight, use 0. Use 1 for night vision and 2 for thermal vision. Sorry I do not have an easier way to set the camera up at this time. If you come up with a better solution, please share it with me :)

Supported vehicle base classes:

Offroad_01_repair_base_F
Offroad_01_unarmed_base_F
Offroad_02_unarmed_base_F
Rubber_duck_base_F
Heli_Light_01_unarmed_base_F

SPECIAL THANKS:
JBOY for allowing me to build off of his JBOY Dogs suite of scripts.

DISCLAIMER / LICENSE:
I am not responsible for any damage caused by this addon. While the rabid dogs can be scary, it is unlikely they will leap through the monitor and harm you. Face protection is recommended while playing.

This is completely open source. Please credit JBOY and AZCoder if you make changes, but otherwise do as you wish with it.
58 Comments
AZCoder  [author] 21 Apr @ 11:11am 
I loaded the game with the mod. F5, first thing in list is Ambient, both dog modules on top. Ambient should be there if you have TacOps DLC. Ensure [AZCoder] Dog Packs is in your mod list when loading game. Beyond that, I don't know.
Tuco Ramirez 20 Apr @ 4:46pm 
No Ambient , no Modul, nothing :-(
I cant find this Modul after the Installation.
AZCoder  [author] 7 Apr @ 10:14am 
I'm checking on that. I think someone was gonna do that a year back, although I know it would be tricky to pull off without a total rewrite.
Hi, any returns about the K9 MP version ? thx
AZCoder  [author] 8 Oct, 2023 @ 7:37pm 
Y key. Line 12 of functions\fn_DogOpenUI.sqf
// y key
case 21:

and line 7 of functions\fn_DogCloseUI.sqf.

The codes are here: https://community.bistudio.com/wiki/DIK_KeyCodes
Have fun!
ImperiumRealm 8 Oct, 2023 @ 3:31pm 
how do you bring up the command menu for the dog and can you change keybind
AZCoder  [author] 27 Aug, 2023 @ 11:38am 
As stated in description, this is for SP. Someone was working on an MP version, but I don't know the status.
Crocodilo 12 Jun, 2023 @ 4:23am 
Hi! The new K9 has been released. It needs a good scripter. Plase give it a shot.
https://steamproxy.net/sharedfiles/filedetails/?id=2912186689
TDG11 31 May, 2023 @ 5:19pm 
DID ANYONE TEST THIS ON MP
Johnnyboy 8 May, 2023 @ 6:44pm 
My name is johnnyboy, and I endorse this friggin' awesome mod. Thanks AZ!!!!