AnthraxBio

Return to Castle Wolfenstein => Coding Tutorials => Topic started by: SkreamerVirii on September 03, 2008, 11:15:20 PM



Title: Dropable Weapons
Post by: SkreamerVirii on September 03, 2008, 11:15:20 PM
In this tutoriasl i will explain how to make non-droppable weapons dropable
the ones i am talking about are the venom and the
go here in g_combat.c
/*
=================
TossClientItems
Toss the weapon and powerups for the killed player
=================
*/
then find this code
// JPW NERVE don't drop these weapon types
if ((weapon == WP_FLAMETHROWER) || (weapon == WP_GARAND) || (weapon == WP_MAUSER) || (weapon == WP_VENOM))
weapon = WP_NONE;
// jpw
theres a little bit more to it than that so as of now this tutorial is incomplete