I'm quite new on both C++ and Source coding, but anyway here I am making my own
little mod.
What I'm having trouble with is getting the model ( a clay pigeon to be precise
) to register when
it is being hit by a bullet. I've tried to use CBreakableProp as the base
class, but it didn't work for
me with the code:
int CClayPigeon::OnTakeDamage( const CTakeDamageInfo &inputInfo )
{
CTakeDamageInfo info = inputInfo;
int ret = BaseClass::OnTakeDamage( info );
BaseClass::Break( info.GetAttacker(), info );
Msg( "The clay pigeon was hit"); //Or should have been
return ret;
}
I have no honest idea if this code is right at all.
The idea is that I use the shotgun from HL2, and if the clay pigeon takes any
damage at all it would break, and then
give a point to the player. So if anyone has an idea on how to do it better I
would be glad to hear.
Also, I noticed on the multiplayer mod that there is no default scoreboard, or
any code for giving a specific player points.
Does anyone know of any code that I haven't noticed, a tutorial or have some
code themselves they would like to share?
And I'm using the Ep1 engine
Thanks in advance
_________________________________________________________________
Få Windows Live Messenger på mobilen.
http://windowslivemobile.msn.com/Homepage.aspx?lang=nb-no&ocid=30032
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders