Jump to content
Sign in to follow this  
TheRedBaron

Model special

Recommended Posts

I searched and all I found was the same question and no one answered. I am working on making a custom rocket launcher with a custom rocket. Im having a few problems with the config. Its saying on the menu screen that there is no rocket model in the bin, which I take it to mean that I have not told it where it is somewhere in the con fig. and im getting " model special" when i try to preview in mission editor. here is my config wink_o.gif  I know Ive butchered it but please help.In my folder before i pbo it I have the config, the cstm_rpg.p3d, and the cstm_rocket.p3d(no textures yet).

EDIT: ok ive updated the config but still same problems, please need some help here sad_o.gif

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//custom rpg

// Basic def.

#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 true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class cstm_rpg

{

units[]={civilianRPG};

weapons[]={cstm_rpg};

requiredVersion=1.75;

};

};

class CfgModels

{

class Default{};

class weapon: default {};

class cstm_rpg: weapon {};

};

class CfgAmmo

{

class default {};

class AT3: default {};

class LAW: AT3 {};

class RPG: LAW {};

class cstm_rocket: RPG

{

model = "\cstm_rpg\cstm_rocket";

minRange=100;minRangeProbab=0.8;

midRange=500;midRangeProbab=1.0;

MaxRange=2000;maxRangeProbab=1.0;

initTime=0.1;

ThrustTime=.200000;

thrust=500;

maxspeed=300;

soundHit[]={"\cstm_rpg\boom.wav",31.622778,1.0};

soundFly[]={"\objects\noise",0.023100,2};

hit=80;indirectHit=60;indirectHitRange=5;

};

};

class CfgWeapons

{

class Default {};

class LAWLauncher: Default {};

class cstm_rpg: LAWLauncher

{

model="\cstm_rpg\cstm_rpg";

displayName="cstm_rpg";

displayNameMagazine="cstm_rocket";

magazines[]={"cstm_rocket"};

ammo="cstm_rocket";

count=4;

reloadTime=5.0;

sound[]={"\cstm_rocket\launch.wav",0.2500000,1};

reloadMagazineSound[]={"\cstm_rpg\reload.wav",0.2300000,1};

};

};

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class Civilian:Soldier{};

class CivilianRPG: Civilian

{

access=2

displayName="CivilianRPG";

weapons[]={"Throw","Put","cstm_rpg"};

magazines[]={"cstm_rocket","cstm_rocket","cstm_rocket","cstm_rocket"};

};

};

Share this post


Link to post
Share on other sites
Guest

make "u" on map press enter (trie to start)

u recive error "model special"

put anotherone on map and press continue....

u will go on map  and u will see what the problem is

smile_o.gif

btw    "cstm_rocket" this is not defined in ur cpp as a magazine but as ammo

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
Sign in to follow this  

×