PDA

View Full Version : Cfgmovesmc problem



rygugu
Feb 5 2003, 13:18
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&#58; NoActionsAll {};
class WeaponActions&#58; NoActions
{
reloadRLRPG=&#34;ReloadRLRPG&#34;;
};
};
class Default {};
class DefaultDie&#58; Default {};
class States
{
class Weapon&#58; Default {};
class ReloadRLRPG&#58; Weapon
{
file=&#34;&#92;MyADDON&#92;rpgLord.rtm&#34;;
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

Suma
Feb 6 2003, 05:45
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&#91;&#93;={}; // after which state may be this one played
connectTo&#91;&#93;={}; // which state may be played after this one
interpolateWith&#91;&#93;={}; // which states may we interpolate with
interpolateTo&#91;&#93;={}; // which states may we interpolate with
interpolateFrom&#91;&#93;={}; // 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&#58; Default
{
preload = true;
actions=CombatActions;
file=klekdostani.rtm;
speed=-0.4;
looped=false;
soundEnabled=false;
enableOptics=false;
connectFrom&#91;&#93;={Crouch,0.5};
connectTo&#91;&#93;={Combat,0.5};
interpolateTo&#91;&#93;={CombatDying,0.1,CombatDyingVer2,0.1,CombatDyingVer3,0.1};
};
[/QUOTE]<span id='postcolor'>

rygugu
Feb 6 2003, 11:37
THX Suma&#33;&#33;&#33;&#33;&#33; 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&#58; NoActionsAll {};
class WeaponActions&#58; NoActions
{
reloadRLRPG=&#34;ReloadRLRPG&#34;;
};
};
class Default {};
class StandBase&#58; Default {};
class LadderBase&#58; StandBase {};
class LadderUpBase&#58; LadderBase {};
class LadderDownBase&#58; LadderBase {};
class DefaultDie&#58; Default {};
class States
{
class Weapon&#58; Default {};
class WeaponReloadAT&#58; Weapon {};
class ReloadRLRPG&#58; WeaponReloadAT
{
actions = WeaponActions;
file=&#34;&#92;MyADDON&#92;rpgLord.rtm&#34;;
speed=-4.0;
looped=false;
disableWeapons=true;
soundEnabled=false;
      connectFrom&#91;&#93;={Weapon,0.5};
      connectTo&#91;&#93;={Weapon,0.5};
interpolateTo&#91;&#93;={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&#39;t I have you help once again?

I am sorry to be strange English.

rygugu
Feb 11 2003, 11:34
Don&#39;t someone have a good idea? http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/sad.gif
PLZ-----------Help&#33;&#33;&#33;&#33; http://www.flashpoint1985.com/ikonboard301/iB_html/non-cgi/emoticons/confused.gif

UnYx
Feb 11 2003, 23:25
this kind of sections are interestiong for my PB as well ... gonna digest it & give news if I find something useable.

rygugu
Feb 12 2003, 13:09
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&#58; NoActionsAll {};
class WeaponActions&#58; NoActions
{
ReloadRLRPG=&#34;ReloadRLRPG&#34;;
};
};
class Default {};
class Weapon&#58; Default {};
class States
{
class ReloadRLRPG&#58; Weapon
{
actions = WeaponActions;
file=&#34;&#92;MyAddon&#92;rpgLord.rtm&#34;;
speed=-4.0;
looped=false;
disableWeapons=true;
soundEnabled=false;
connectFrom&#91;&#93;={Weapon,2};
connectTo&#91;&#93;={Weapon,2};
interpolateTo&#91;&#93;={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.

rygugu
Feb 16 2003, 23:46
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&#58; NoActionsAll {};
class WeaponActions&#58; NoActions
{
reloadRLRPG=&#34;ReloadRLRPG&#34;;
};
};
[/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

nero12
Mar 19 2003, 10:17
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.