Re: cs weapons modification -
14-09-2005
You can get a CBaseEntity pointer from an edict_t pointer by calling CBaseEntity::Instance( edict_t* ).
BUT, don't expect it to work or not crash since almost every mod makes changes to the top of the CBaseEntity class which breaks compatibility by changing the positions of variables inside the class.
One exception is natural selection which does allow you to call CBaseEntity::TakeDamage.
I'll think for a bit and see if theres any way to cause damage to a player but as far as I know no other entities can have variable damage amounts.
|