* Teamup with other guy.  (<-- blame he your bugs. You can have fun with
bugs + asserts + friends )

How I love my coding freind :)


On Thu, 20 Jan 2005 15:47:26 +0100, tei <[EMAIL PROTECTED]> wrote:
> off-topic
>
> N suggestions:
>
> * Avoid daylight, code at night
> * Buy a C++ book. (<-- this its very valuable tip, but I think will be
> ignored because you will think its something rude )
> * Teamup with other guy.  (<-- blame he your bugs. You can have fun with
> bugs + asserts + friends )
> * Start a software pet project (<--  swich to the pet wen stuck. )
> * Use tabs, not spaces.
>
>
> Frank Weima wrote:
> > *sigh*
> >
> > People, I'm a newbie to C++.
> > I am just teaching it for some months now.
> > Like the other guy was saying:
> >
> > ====================================
> > "static_cast<CBasePlayer*> the CBaseEntity, then do
> > Event_Killed(CTakeDamageInfo( blah )); to kill him, then Event_Dying()"
> >
> > ==and==
> > "just use SetHealth and GetHealth - but make sure to check if it
> > goes to 0 or below, as you'll have to kill him yourself if it happens."
> > ====================================
> > Yes, maybe for the real coders this is easy.
> > I tried to figure it out myself now for weeks, but still cannot do it.
> > Is there someone who can realy help me with a piece of code or something?
> >
> > My code is like this now:
> > ====================================
> > Q_snprintf( gBuffer, 128, "Setting your health");  // Message
> >       engine->ClientPrintf(pEntity, gBuffer );
> >
> >       // It has to come here, the health that goes up
> >
> >       CreateAMessage(pEntity,"msg",gBuffer,engine->IndexOfEdict(pEntity));
> >       engine->ClientCommand(pEntity,gBuffer);    // Message again
> > ====================================
> >
> > So please, anobody?
> >
> > Thanks.
> > Frank Weima.
> >
> >
> >
> > ----- Original Message -----
> > From: "Lance Vorgin" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Thursday, January 20, 2005 12:21 AM
> > Subject: Re: [hlcoders] Player command - Health control? Damage?
> >
> >
> >
> >>You need to include a ton of server project headers. Just #define
> >>GAME_DLL 1 at the top and take all the #includes from util.cpp :/
> >>
> >>Update killed the Event_ stuff for the time being (how mean of them).
> >>CBaseEntity::Teleport still works.
> >>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


--
- Ben Davison
- http://www.shadow-phoenix.com

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

Reply via email to