.| Autor | Beitrag |
|---|---|
|
000 16.06.2001, 21:17 Crouching Tiger |
Wenn ich mit meiner selbstgebauten "Waffe" auf eine Wand haue dann spielt es immer nur eine Animation ab, obwohl ich eigentlich zwei habe! Auszug aus hand.ccp (waffencode) [...]
CBaseEntity *pEntity = CBaseEntity::Instance(tr.pHit); switch( ((m_iSwing++) % 1) + 1 )
// player "shoot" animation
ClearMultiDamage( );
m_flNextPrimaryAttack = gpGlobals->time + 0.1;
Auszug aus .qc Datei: // sequences: all sequences are in $cd
????? --CTHD CLAN IS MAIZBROD!!!!!!!! |
|
Profil || Suche |
|
001 17.06.2001, 10:50 [RMen]OneStone |
Also das liegt wohl daran, dass du folgendes geschrieben hast:
Was hälst du von folgendem:
georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |
|
002 17.06.2001, 12:12 Crouching Tiger |
Aber bei der Crowbar funktioniert es ja auch ohne dieses ATTACK2???? --CTHD CLAN IS MAIZBROD!!!!!!!! |
|
Profil || Suche |
|
003 18.06.2001, 14:24 [RMen]OneStone |
Keine Ahnung warum...
georg-wicherski@pixel-house.net | http://www.pixel-house.net/ - Coding Resource| http://www.google.de/ |
|
Profil || Suche |
|
004 23.06.2001, 12:02 Crouching Tiger |
Das mit der PLAYER_ATTACK2 kann gar nicht funktionieren, weil:
Aber: Ich habe es jetzt so gemacht und es funktioniert auch so: [...] CBaseEntity *pEntity = CBaseEntity::Instance(tr.pHit); switch( (m_iSwing++) % 2)
// player "shoot" animation
[...] Jawoll! --CTHD CLAN IS MAIZBROD!!!!!!!! |
|
Profil || Suche |
|
005 23.06.2001, 15:25 TheTinySteini |
Jo, denn mit deinem ursprünglichen Code hat er immer die zweite Animation abgespielt, weil du das so programmiert hast!
TheTinySteini |
|
Profil || Suche |

