Phantom

Phantom is a custom script inspired by stalker's phantom dogs which are able to clone and emit psi energy.

This mod requires CRDTN Core as depandancy so if you don't have the Core, please refer to that and install it from the workshop.

Dude standing on the railroad

Installation

Download the mod from workshop.

How to use

Client side

You can use the built in phantom classes which are based on the vanilla wolfs.

  • CRDTN_PhantomWolfGrey
    CRDTN_PhantomWolfWhite

Or you can make your own :)

  • Create an empty mod or use your server mod, or any other mod of your own. Do not modify the mod from the workshop. It is prohibited to repack this mod and modify it unless you have the permission.

You can use the full potential without any need to modify the original mod.

You must inherit your animal class from the CRDTN_Creature_PhantomBase

The phantom class expects parameters being set in the config.cpp. No json or any other config file needed.

Example with AoD assets

Use the following example to get the idea, how to properly attach your animals to the script and do make it phantom.

```
class CfgVehicles {

    class AnimalBase;
    class Animal_CanisLupus : AnimalBase {};
    
    class Mutant_AoD_Pse_Dog_Base : Animal_CanisLupus 
    {
        scope = 0;
        phantomType = "Mutant_AoD_Pse_Dog2";     // Set on the subclasses
        phantomCount = 5;                        // Max phantom count
        phantomSpawnTimer = 3;                   // Interval of spawning in seconds
        phantomCheckTimer = 1;                   // Interval of checking in seconds
        phantomRadius = 10;                      // Spawn Radius
        phantomEffectDistance = 30;              // Meters
        phantomSize = 0.2;                       // Not working at the moment
    };
    
    class Mutant_AoD_Pse_Dog1 : Mutant_AoD_Pse_Dog_Base 
    {
        scope = 2;
        phantomType = "Mutant_AoD_Pse_Dog2"; // Set on the subclasses
    };
    
    class Mutant_AoD_Pse_Dog2 : Mutant_AoD_Pse_Dog_Base {};
    
};
```

Create a script in module 4_World

You can literally place it wherever you need, just make sure, this script is loaded on the client side.

```
class Mutant_AoD_Pse_Dog_Base : CRDTN_Creature_PhantomBase {};
class Mutant_AoD_Pse_Dog1 : Mutant_AoD_Pse_Dog_Base {};
class Mutant_AoD_Pse_Dog2 : CRDTN_Creature_Minion {};
```

Server side

Server side mod is part of the workshop item. To install the server side mod, you just need to place the pbo in the Addons folder of your server. If you use Omega and similar tools, make sure the mod is properly loaded on the server.

Last updated