View Full Version : Cfgmovesmc problem
Hi ALL
My RPG Reload Action. it doesn't work.???
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMovesMC
{
class Actions
{
class NoActionsAll {};
class NoActions: NoActionsAll {};
class WeaponActions: NoActions
{
reloadRLRPG="ReloadRLRPG";
};
};
class Default {};
class DefaultDie: Default {};
class States
{
class Weapon: Default {};
class ReloadRLRPG: Weapon
{
file="\MyADDON\rpgLord.rtm";
speed=-4.0;
looped=false;
disableWeapons=true;
soundEnabled=false;
};
};
};
[/QUOTE]<span id='postcolor'>
and [reloadAction="ManActreloadRLRPG";]was inserted in class CfgWeapons.
Where is wrong? http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif
You have not defined any connections between ReloadRLRPG and other moves. Without connections OFP does not know how (and from which moves) your animation can be accessed, and it is therefore not able to use it. Check for entries like
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
connectFrom[]={}; // after which state may be this one played
connectTo[]={}; // which state may be played after this one
interpolateWith[]={}; // which states may we interpolate with
interpolateTo[]={}; // which states may we interpolate with
interpolateFrom[]={}; // which states may we interpolate with
[/QUOTE]<span id='postcolor'>
Example:
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CrouchToCombat: Default
{
preload = true;
actions=CombatActions;
file=klekdostani.rtm;
speed=-0.4;
looped=false;
soundEnabled=false;
enableOptics=false;
connectFrom[]={Crouch,0.5};
connectTo[]={Combat,0.5};
interpolateTo[]={CombatDying,0.1,CombatDyingVer2,0.1,CombatDyingVer3,0.1};
};
[/QUOTE]<span id='postcolor'>
THX Suma!!!!! http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/biggrin.gif
I tried as follows.
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMovesMC
{
class Actions
{
class NoActionsAll {};
class NoActions: NoActionsAll {};
class WeaponActions: NoActions
{
reloadRLRPG="ReloadRLRPG";
};
};
class Default {};
class StandBase: Default {};
class LadderBase: StandBase {};
class LadderUpBase: LadderBase {};
class LadderDownBase: LadderBase {};
class DefaultDie: Default {};
class States
{
class Weapon: Default {};
class WeaponReloadAT: Weapon {};
class ReloadRLRPG: WeaponReloadAT
{
actions = WeaponActions;
file="\MyADDON\rpgLord.rtm";
speed=-4.0;
looped=false;
disableWeapons=true;
soundEnabled=false;
connectFrom[]={Weapon,0.5};
connectTo[]={Weapon,0.5};
interpolateTo[]={WeaponDead,0.1};
};
};
};
[/QUOTE]<span id='postcolor'>
However, it did not function. http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif
Muuuuuuu.
Don't I have you help once again?
I am sorry to be strange English.
Don't someone have a good idea? http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif
PLZ-----------Help!!!! http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif
this kind of sections are interestiong for my PB as well ... gonna digest it & give news if I find something useable.
I changed in this way.
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgMovesMC
{
class Actions
{
class NoActionsAll {};
class NoActions: NoActionsAll {};
class WeaponActions: NoActions
{
ReloadRLRPG="ReloadRLRPG";
};
};
class Default {};
class Weapon: Default {};
class States
{
class ReloadRLRPG: Weapon
{
actions = WeaponActions;
file="\MyAddon\rpgLord.rtm";
speed=-4.0;
looped=false;
disableWeapons=true;
soundEnabled=false;
connectFrom[]={Weapon,2};
connectTo[]={Weapon,2};
interpolateTo[]={WeaponDead,0.1};
};
};
};[/QUOTE]<span id='postcolor'>
In an editor, use of "Unit switchmove" reproduces animation.
However, even if it re-loads with AT, an effect does not show up. http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif
I am waiting for your advice.
http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/wink.gif My motion
http://www.japan-art.co.jp/~bpcraft/rldact.jpg
OK. I think that I have understood about "class States".
But.About "class Actions", it does not understand in many cases.
Is defining new action as me possible?
For example
</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">class Actions
{
class NoActionsAll {};
class NoActions: NoActionsAll {};
class WeaponActions: NoActions
{
reloadRLRPG="ReloadRLRPG";
};
};
[/QUOTE]<span id='postcolor'>
And I inserted [reloadAction="ManActreloadRLRPG";] in class CfgWeapons.However, it does not function. http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif
The existing action is changed. Or what should it really carry out for adding a new thing? http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif
http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif Hi Summa could not thee register ANIMATION of recharge and that as unit holds weapons for mine of RPG-7, and that I tried nothing unit is received during recharge simplly costs(stands), Please.
Beforehand thanks.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.