.| Autor | Beitrag |
|---|---|
|
000 19.02.2002, 18:02 Neuling |
Ich habe mir Tutorial von DHCC durch gelesen und ausprobiert. Leider funktioniert das irgendwie nicht. Das Sprite kann ich an der angegebenen Stelle sehen, aber wenn ich es anwählen will passiert nix. #include "extdll.h" enum m14_e class CM14 : public CBasePlayerWeapon void PrimaryAttack( void ); //========================================================= void CM14::Spawn( ) m_iDefaultAmmo = MP5_DEFAULT_GIVE; FallInit();// get ready to fall down. void CM14::Precache( void ) m_iShell = PRECACHE_MODEL ("models/shell.mdl");// brass shellTE_MODEL PRECACHE_MODEL("models/grenade.mdl"); // grenade PRECACHE_MODEL("models/w_9mmARclip.mdl"); PRECACHE_SOUND("items/clipinsert1.wav"); PRECACHE_SOUND ("weapons/hks1.wav");// H to the K PRECACHE_SOUND( "weapons/glauncher.wav" ); PRECACHE_SOUND ("weapons/357_cock1.wav"); m_usM14 = PRECACHE_EVENT( 1, "events/mp5.sc" ); int CM14::GetItemInfo(ItemInfo *p) return 1; int CM14::AddToPlayer( CBasePlayer *pPlayer ) BOOL CM14::Deploy( ) void CM14::PrimaryAttack() if (m_iClip <= 0) PLAYBACK_EVENT( 0, m_pPlayer->edict(), m_usM14 ); m_pPlayer->m_iWeaponVolume = NORMAL_GUN_VOLUME; m_iClip--; // player "shoot" animation Vector vecSrc = m_pPlayer->GetGunPosition( ); if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0) m_flNextPrimaryAttack = m_flNextPrimaryAttack + 0.2; m_flTimeWeaponIdle = gpGlobals->time + RANDOM_FLOAT ( 10, 15 ); void CM14::Reload( void ) void CM14::WeaponIdle( void ) m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES ); if (m_flTimeWeaponIdle > gpGlobals->time) int iAnim; SendWeaponAnim( iAnim ); m_flTimeWeaponIdle = gpGlobals->time + RANDOM_FLOAT ( 10, 15 );// how long till we do this again. class CM14AmmoClip : public CBasePlayerAmmo class CM14Chainammo : public CBasePlayerAmmo |
|
Profil || Suche |
|
001 19.02.2002, 18:05 Retro |
lalalala --shielding people from their own stupidity is an evolutionary step backwards anyway. /* God is dead!............Nietzsche */ |
|
Profil || Suche |
|
002 19.02.2002, 18:09 CabaL |
das liegt nicht an deiner m4.cpp. ..::I've carved my soul to shreds in service of the Cabal. What little humanity I retain is corrupted by the Beast, which has grown stronger with every life I've taken::. |
|
Profil || Suche |
|
003 19.02.2002, 18:33 Retro |
Das sollte eher pure Ignoranz ausdrücken... --shielding people from their own stupidity is an evolutionary step backwards anyway. /* God is dead!............Nietzsche */ |
|
Profil || Suche |
|
004 19.02.2002, 18:34 CabaL |
ja cih weiss, ist schon etwas frech son riesenstück code hier reinzuposten, aber sehs doch so: wir alle haben klein angefangen, und viele sind es noch(/me) :) --..::I've carved my soul to shreds in service of the Cabal. What little humanity I retain is corrupted by the Beast, which has grown stronger with every life I've taken::. |
|
Profil || Suche |
|
005 19.02.2002, 18:43 Neuling |
Wie meinst du das mit der sprite???????????????? -- |
|
Profil || Suche |
|
006 19.02.2002, 18:45 CabaL |
ich nehm mal an das hier der fehler liegt: ..::I've carved my soul to shreds in service of the Cabal. What little humanity I retain is corrupted by the Beast, which has grown stronger with every life I've taken::. |
|
Profil || Suche |
|
007 19.02.2002, 20:55 Neuling |
funtioniert nicht |
|
Profil || Suche |
|
008 19.02.2002, 21:00 Erasor |
Haste ne txt Datei für deine Waffe angelegt ? -- |
|
Profil || Suche |
|
009 19.02.2002, 21:06 Neuling |
ja habe ich, es kommen auch keine fehler wenn ich alles compiliere (KOMMISCHES WORT ) ich bekomm sie einfach nicht. -- |
|
Profil || Suche |
|
010 19.02.2002, 21:12 Exec |
geb mal in die console "give weapon_m14" ein! meistens bekommt man die dann auch .... schreib dann mal, obs ging, ob fehler kamen, etc --"selbermachen rockt am meisten :D" - -LeJean- |
|
Profil || Suche |
|
011 19.02.2002, 21:25 Neuling |
als ich den befehl eingab kamm so ein klicken als würde man die waffe aufheben, aber haben tu ich sie immer noch nicht. -- |
|
Profil || Suche |
|
012 19.02.2002, 21:55 Neuling |
ich wollt nur mal sagen das ich es geschafft hab. |
|
Profil || Suche |

