If you are declaring SetTimer in the class def, are you actually 
providing a body for that method?

Yorg Kuijs wrote:
> hey List,
>
> back again with another problem
> now trying to start off the detonation off grenades when the pull is 
> pinned through events, I first tested it by starting the countdown sound 
> in the event and that worked, doing the timer proves more troublesome.
>
> I'm currently working in weapon_superfrag.cpp which is very similar to 
> the regular weapon_frag.cpp
> I declared it in the public of the class among :
> #ifndef CLIENT_DLL
>     void Operator_HandleAnimEvent( animevent_t *pEvent, 
> CBaseCombatCharacter *pOperator );
>     void    SetTimer( float detonateDelay, float warnDelay );
> #endif
>
> HandleAnimEvent is for the events, I've added the SetTimer which 
> correctly sees it as coming from CGrenadeSuperFrag from 
> grenade_superfrag.cpp
>
> in the event itself I have placed:
> SetTimer( GRENADE_TIMER, GRENADE_TIMER - 1.5f );
>
> the first GRENADE_TIMER is the time until detonate and the second one is 
> AI warn time(which doesnt really matter since its a multiplayer mod with 
> no npc's but this is default stuff basically)
>
> but I get the following error:
> error LNK2019: unresolved external symbol "public: void __thiscall 
> CWeaponSuperFrag::SetTimer(float,float)" 
> ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "public: 
> virtual void __thiscall 
> CWeaponSuperFrag::Operator_HandleAnimEvent(struct animevent_t *,class 
> CBaseCombatCharacter *)" 
> ([EMAIL PROTECTED]@@UAEXPAUanimevent_t@@PAVCBaseCombatCharacter@@@Z)    
> weapon_superfrag.obj
>
> if I remember well it has something to do with doing something wrong 
> with including or declaring something or whatever but I have no idea 
> what hehe soo any wise advice/help would be appreciated.
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>   

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to