.| Autor | Beitrag |
|---|---|
|
000 02.06.2007, 23:12 the_Crow |
ist es möglich ein waffe zu programmieren die statt kugeln irgendwelche entities verschießt? zb ein prop_physics oder einen npc. www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
001 02.06.2007, 23:16 McScore |
Rikku dürfte sich da auskennen. --... und der große böse Wolf bootete und bootete und bootete ... |
|
Profil || Suche |
|
002 03.06.2007, 10:06 the_Crow |
hat sonst noch jemand eine lösung --www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
003 03.06.2007, 12:25 the_Crow |
ich hab etwas gefunden was mir ein bisschen weiter hilft. in der datei weapon_ar2.cpp gibts eine code stelle an der definiert wird was bei der zweiten schussfunktion aus der waffe kommt. hier ist es ein prop_combine_ball. ich würde aber gern ein prop_physic machen, das aussieht wie ein ziegelstein. --www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
004 05.06.2007, 08:38 RikkuZooo |
Hier villeicht klapts: such einfach in der "prop_combine_brick.cpp" nach "// here the Brick model" -- |
|
Profil || Suche |
|
005 05.06.2007, 14:17 the_Crow |
die datei weapon_ar2.cpp is in ordnung aber bei den anderen bekomm ich ein "paar" Fehlermeldungen.
www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
006 05.06.2007, 14:26 the_Crow |
www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
007 05.06.2007, 14:28 the_Crow |
www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
008 05.06.2007, 18:27 RikkuZooo |
haste die combine_brick auch includiert? -- |
|
Profil || Suche |
|
009 05.06.2007, 19:14 the_Crow |
ja. ich hab sie da hinzugefügt wo auch die combine_ball is --www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
010 05.06.2007, 19:18 RikkuZooo |
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============// #ifndef PROP_COMBINE_BALL_H //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- public: virtual void OnPhysGunPickup( CBasePlayer *pPhysGunUser, PhysGunPickup_t reason ); virtual bool OverridePropdata(); CFuncCombineBallSpawner *GetSpawner(); virtual void ExplodeThink( void ); // Override of IPlayerPickupVPhysics; void SetRadius( float flRadius ); void CaptureBySpawner( ); void ReplaceInSpawner( float flSpeed ); // Input enum void SetState( int state ); void StartWhizSoundThink( void ); void StartLifetime( float flDuration ); void SetWeaponLaunched( bool state = true ) { m_bWeaponLaunched = state; m_bLaunched = state; } bool WasFiredByNPC() const { return (GetOwnerEntity() && GetOwnerEntity()->IsNPC()); } virtual CBasePlayer *HasPhysicsAttacker( float dt ); void SetSpawner( CFuncCombineBallSpawner *pSpawner ) { m_hSpawner = pSpawner; } float LastCaptureTime() const; unsigned char GetState() const { return m_nState; } int NumBounces( void ) const { return m_nBounceCount; } void SetMaxBounces( int iBounces ) void SetEmitState( bool bEmit ) private: void SetPlayerLaunched( CBasePlayer *pOwner ); float GetBallHoldDissolveTime(); // Pow! void StartAnimating( void ); void SetBallAsLaunched( void ); void CollisionEventToTrace( int index, gamevcollisionevent_t *pEvent, trace_t &tr ); // Bounce inside the spawner: bool IsAttractiveTarget( CBaseEntity *pEntity ); // Deflects the ball toward enemies in case of a collision // Is this something we can potentially dissolve? // Sucky. void FadeOut( float flDuration ); bool OutOfBounces( void ) const private: int m_nBounceCount; float m_flLastBounceTime; bool m_bFiredGrabbedOutput; unsigned char m_nState; float m_flSpeed; CSpriteTrail *m_pGlowTrail; float m_flNextDamageTime; CHandle < CFuncCombineBallSpawner > m_hSpawner; CNetworkVar( bool, m_bEmit ); class CFuncCombineBallSpawner : public CBaseEntity public: virtual void Spawn(); // Balls call this to figure out where to bounce to // Balls call this when they've been removed from the spawner // Fire ball grabbed output // Get speed of ball to place into the field // Register that a reflection occurred // Spawn a ball private: // Choose a random point inside the cylinder // Choose a random point inside the box // Used to determine when to respawn balls // Input // Fire ball grabbed output public: private: COutputEvent m_OnBallGrabbed; class CPointCombineBallLauncher : public CFuncCombineBallSpawner DECLARE_DATADESC(); public: virtual void Spawn( void ); CPointCombineBallLauncher(); private: int m_iBounces; // Creates a combine ball // Query function to find out if a physics object is a combine ball (used for collision checks) #endif // PROP_COMBINE_BALL_H add das alles in die "prop_combine_brick.h" denke mal dann solte es gehen. -- |
|
Profil || Suche |
|
011 06.06.2007, 14:14 the_Crow |
nein funktioniert noch immer nicht. obwohl die liste der fehler schon kürzer ist
www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
012 06.06.2007, 14:18 the_Crow |
www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
013 06.06.2007, 14:30 the_Crow |
www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
014 06.06.2007, 18:15 RikkuZooo |
dann liegts an meinen sdk das du en aktuellers hast als ich anscheint -- |
|
Profil || Suche |
|
015 10.06.2007, 19:12 the_Crow |
was kann man dagegen tun? außer ein update machen natürlich :) --www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
016 12.06.2007, 08:07 the_Crow |
kennt sonst noch jemand eine lösung --www.the-crow.at - meine persönliche Website | TibiaGerman | Twitter | Wiaschtlsiada |
|
Profil || Suche |
|
017 12.06.2007, 09:20 hausi |
1. Lies dir mal eine der Fehlermeldungen durch (random pick): |
|
Profil || Suche |
|
018 12.06.2007, 12:59 Bluthund |
Noch besser als die prop_combine_ball.cpp aus dem Projekt zu nehmen, wäre es wahrscheinlich der neuen Klasse und sämtlichen anderen neu definierten Sachen einfach nen anderen Namen zu geben als den schon bestehenden in der prop_combine_ball.cpp *hint* Aber du solltest dich wirklich erstmal eingehend mit der Funktion des Linkers auseinandersetzen. Denn der Fehler ist ja nun wirklich aussagekräftig genug... The C language combines all the power of assembly language with all the ease-of-use of assembly language. |
|
Profil || Suche |
|
019 20.06.2007, 21:46 RikkuZooo |
ich hab denn von meinen sdk genommen was ich derzeite verwende also ist schon wieder 2-3 monate alte gabs ja auch updates von daher weis ich nicht |
|
Profil || Suche |

