I don't have the code infront of me so somebody will be able to do it
better than this, but find where you hit/attack/kill sombody (if I
recall it has two pointers - pAttacker and pVictim) and all you need to
do is check if pVictim is dead and do something like
pAttacker->m_iMoneyAmount += 50000.

I think.


>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of
> Jeff Thornhill
> Sent: Tuesday, December 10, 2002 7:47 AM
> To: [EMAIL PROTECTED]
>
> I checked out the tutorial at
> http://hlpp.telefragged.com/tuts/money.htm
> for a money system, but it doesn't fit what i need.  Any
> ideas how to have it so when you kill a monster (maybe the
> base monster class?) you get money for it?
>
> _______________________________________________
> 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