Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgWeapons/Tools/Flashlights.hpp
A Man d9b9874532 Change scope and type of configs from name to numbers
This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs.  A proper config should use numbers for those entries. This is the same how arma configs are written.  The basicDefines.hpp has all the needed information stored.

Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
2020-05-29 02:04:06 +02:00

120 lines
2.6 KiB
C++

class ItemFlashlight : ItemCore
{
scope = 2;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5;
descriptionShort = $STR_EQUIP_DESC_5;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemFlashlight"};
output[] = {"MeleeFlashlight"};
};
};
};
class ItemFlashlightBroken : ItemCore
{
scope = 2;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5_BROKEN;
descriptionShort = $STR_EQUIP_DESC_5_BROKEN;
};
class MeleeFlashlight : Pistol
{
scope = 2;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5;
descriptionShort = $STR_EQUIP_DESC_5;
modelOptics = "-";
magazines[] = {};
class FlashLight
{
color[] = {0.9, 0.9, 0.7, 0.9};
ambient[] = {0.1, 0.1, 0.1, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.1;
};
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeFlashlight"};
output[] = {"ItemFlashlight"};
};
};
};
class ItemFlashlightRed : ItemFlashlight
{
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6;
descriptionShort = $STR_EQUIP_DESC_6;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemFlashlightRed"};
output[] = {"MeleeFlashlightRed"};
};
};
};
class ItemFlashlightRedBroken : ItemCore
{
scope = 2;
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6_BROKEN;
descriptionShort = $STR_EQUIP_DESC_6_BROKEN;
};
class MeleeFlashlightRed : MeleeFlashlight
{
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6;
descriptionShort = $STR_EQUIP_DESC_6;
class FlashLight
{
color[] = {0.9, 0.0, 0.0, 0.9};
ambient[] = {0.1, 0.0, 0.0, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.08;
};
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeFlashlightRed"};
output[] = {"ItemFlashlightRed"};
};
};
};