AAARGGHHH ! You spend 15 minutes typing then try to attach a "Wrong" file and you lose all your work !!! WHY ? Take Two . . .
@oyman - Back when my brother was in the Army in 1976 the MRE's came in little grey cardboard boxes. It looks like now they come in little green plastic sachets. Type in MRE in Google Images to see what I mean.
@GuiltyRoachKilla - Yes indeed ! All I did was dePBO Gimbal's Tossers addon, edit the config, add my own images and sound and save it under a new directory. I deleted a lot of stuff that was particular to Gimbal's addon (such as new units, new ammo crates etc) and changed various pathways but it's essentially the same thing.
I gave the Canteen and MRE items the very similar characteristics to the Rock item from that addon. They do a minimal form of damage when they hit, don't explode and have no scope. ;D
I gave them new images (for when you look at them in the Ntebook), but kept the default model, so I assume that when you throw them they will still look like grenades, which brings me to . . .
@oyman (again) - Thanks for the models - I'll dePBO them tonight and try again to get the addon working. I PBO'd it three times last night but still couldn't get it to work. I can give it to a unit (via addMagazine or addWeapon) but when I go to Preview the mission it says "no entry CfgWeapons.Canteen (or MRE). :-\
I tried attach the config for public comment but that was when I lost all my previous typing. Instead, I've decided to cut and post it all -
// version 1.46 required
// Addon Copyright Rory Deutsch (Roni) July 2004 - rory@romad.com.au
// Feel free to use, abuse or misuse as you see fit - just don't charge for it.
// Usage = Add to player, object or other unit by use of addMagazine command
// Also required = N/A
// This addon is best used with one or more exhaustion scripts - eg hunger or thirst (available).
// Ensure that player's hunger and thirst ratings go down every time one of these items is consumed.
// Thanks to Gimbal - this config was created from the config in his Gimbals Tossers addon.
// Canteen and MRE models would be greatly appreciated.
// PS - This is my first ever addon !
// Define sides
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
// Define booleans
#define true 1
#define false 0
// Define scopes
#define private 0
#define protected 1
#define public 2
// Define patches
class CfgPatches
{
class UN_forces
{
weapons[] = {Canteen, MRE};
requiredVersion = 1.46;
};
};
// Define "Ammo" configuration specs
class cfgAmmo
{
class Default {};
class Grenade: Default {};
class GrenadeHand: Grenade {};
// Canteen "ammo"
class Canteen: GrenadeHand
{
explosive=0;
hit=1.5;
indirectHit=0;
indirectHitRange=1.000000;
minRange=5;
minRangeProbab=0.900000;
midRange=20;
midRangeProbab=0.700000;
maxRange=40;
maxRangeProbab=0.400000;
// model="canteen";
cost=2;
canteenrattle1[]={"\rationpack\sounds\canteenrattle1.wav",0.05,1};
canteenrattle2[]={"\rationpack\sounds\canteenrattle2.wav",0.05,1};
canteenrattle3[]={"\rationpack\sounds\canteenrattle3.wav",0.05,1};
hitGround[]={"canteenrattle1",0.600000,"canteenrattle2",0.300000,"canteenrattle3",0.100000};
hitMan[]={"canteenrattle1",0.100000,"canteenrattle2",0.600000,"canteenrattle3",0.300000};
hitArmor[]={"canteenrattle1",0.300000,"canteenrattle2",0.100000,"canteenrattle3",0.600000};
hitBuilding[]={"canteenrattle1",0.330000,"canteenrattle2",0.330000,"canteenrattle3",0.330000};
};
// MRE "ammo"
class MRE: GrenadeHand
{
explosive=0;
hit=1;
indirectHit=0;
indirectHitRange=1.000000;
minRange=5;
minRangeProbab=0.900000;
midRange=15;
midRangeProbab=0.600000;
maxRange=30;
maxRangeProbab=0.100000;
// model="MRE";
cost=5;
MREclunk1[]={"\rationpack\sounds\MREclunk1.wav",0.05,1};
MREclunk2[]={"\rationpack\sounds\MREclunk2.wav",0.05,1};
MREclunk3[]={"\rationpack\sounds\MREclunk3.wav",0.05,1};
hitGround[]={"MREclunk1",0.600000,"MREclunk2",0.300000,"MREclunk3",0.100000};
hitMan[]={"MREclunk1",0.100000,"MREclunk2",0.600000,"MREclunk3",0.300000};
hitArmor[]={"MREclunk1",0.300000,"MREclunk2",0.100000,"MREclunk3",0.600000};
hitBuilding[]={"MREclunk1",0.330000,"MREclunk2",0.330000,"MREclunk3",0.330000};
};
};
// Define "Weapon" configuration specs
class cfgWeapons
{
class Default {};
class GrenadeLauncher: Default {};
class Throw: GrenadeLauncher {};
// Canteen "weapon"
class Canteen: Throw
{
ammo="Canteen";
picture="\rationpack\images\Canteen.paa";
displayName="Canteen";
displayNameMagazine="Canteen";
shortNameMagazine="Canteen";
dispersion=0.002000;
initSpeed=20;
reloadTime=0.500000;
count=1;
};
// MRE "Weapon"
class MRE: Throw
{
ammo="MRE";
picture="\rationpack\images\MRE.paa";
displayName="MRE";
displayNameMagazine="MRE";
shortNameMagazine="MRE";
dispersion=0.003000;
initSpeed=15;
reloadTime=0.600000;
count=1;
};
};
Any comments or suggestions greatfully appreciated 1
Cheers
Roni