.| Autor | Beitrag |
|---|---|
|
000 28.05.2001, 18:01 Executioner |
hi wollte ne waffe machn ... (M1891) schaut selber mal mingw32 compile fenster: gcc -march=pentium -O2 -w -I../engine -I../common -I../pm_shared -c m1891.cpp -o
hier mal der ganze quellcode: /***
#include "extdll.h"
enum mp5_e
class CM1891 : public CBasePlayerWeapon
void PrimaryAttack( void );
//=========================================================
void CM1891::Spawn( )
m_iDefaultAmmo = M1891_DEFAULT_GIVE; FallInit();// get ready to fall down.
void CM1891::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/m1891-fire1.wav");// H to the K
PRECACHE_SOUND( "weapons/glauncher.wav" );
PRECACHE_SOUND ("weapons/357_cock1.wav"); m_usM1891 = PRECACHE_EVENT( 1, "events/mp5.sc" );
int CM1891::GetItemInfo(ItemInfo *p)
return 1;
int CM1891::AddToPlayer( CBasePlayer *pPlayer )
BOOL CMP5::Deploy( )
void CM1891::PrimaryAttack()
Vector vecFeuer = pev->origin + gpGlobals->v_forward * 2;
// don't fire underwater
if (m_iClip <= 0)
PLAYBACK_EVENT( 0, m_pPlayer->edict(), m_usM1891 ); m_pPlayer->m_iWeaponVolume = NORMAL_GUN_VOLUME;
m_iClip--; // player "shoot" animation
Vector vecSrc = m_pPlayer->GetGunPosition( );
if ( g_pGameRules->IsDeathmatch() )
if (!m_iClip && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType] <= 0)
m_flNextPrimaryAttack = m_flNextPrimaryAttack + 0.95;
m_flTimeWeaponIdle = gpGlobals->time + RANDOM_FLOAT ( 10, 15 );
void CMP5::Reload( void )
void CM1891::WeaponIdle( void )
m_pPlayer->GetAutoaimVector( AUTOAIM_5DEGREES ); if (m_flTimeWeaponIdle > gpGlobals->time)
int iAnim;
default:
SendWeaponAnim( iAnim ); m_flTimeWeaponIdle = gpGlobals->time + RANDOM_FLOAT ( 10, 15 );// how long till we do this again.
class CM1891AmmoClip : public CBasePlayerAmmo
hab die modelz der waffe noch nich umgeändert, da ich keine neuen hab! was is der fehler, ich versuche es schon seit 3 tagen zu fixen! ohne erfolg help me! thx --www.virus-mod.de.vu <- die neue Mod, zur Vorgeschichte von Half-Life (*lol* steht noch nich in der Story auf der Hp ... is eben noch nich formuliert) |
|
Profil || Suche |
|
001 28.05.2001, 19:24 Killing Me Softly |
Fehler No.1+2
soll warscheinlich:
Fehler No.3
ein LINK_ENTITY_TO_CLASS ist mehr als genug :) --Der Horizont vieler Menschen ist ein Kreis mit Radius Null - und das nennen sie ihren Standpunkt. |
|
Profil || Suche |
|
002 28.05.2001, 20:27 Another1 |
Ich will dich ja nicht für dumm erklären, aber 2x exakt das selbe
fällt doch wohl jedem auf .. oder? naja mehr muss ich wohl nicht sagen *G* // edit // ooops, jetzt hab ich das von killingmesoftly gedoppelt ... *g* --Another1 ...relaxing..atm =) |
|
Profil || Suche |
|
003 28.05.2001, 20:31 Executioner |
hi hehe jo ich habs mir nochma angeschaut und es is mir aufgefallen! ich hab alle fehler alleine beseitigt! ohne das ich nur ein bisschen ahnung von c++ oder so hab *freu* (*g*) (muss mich auch mal loben *ggg*) so nun das nächste prob: hab den impulse101 cheat in der player.cpp umgeändert, bekomme aba die waffe nich! hab auch die weapon_mp5.txt in mein sprite verzeichnis gehaun und in weapon_m1891.txt umbenannt <<< muss ich in der file noch was ändern?, oder wie geht das? (ps: ich hatte wirklich keine compile fehler) thx --www.virus-mod.de.vu <- die neue Mod, zur Vorgeschichte von Half-Life (*lol* steht noch nich in der Story auf der Hp ... is eben noch nich formuliert) |
|
Profil || Suche |

