News: SMF - Just Installed!
 
Welcome, Guest. Please login or register.
+  AnthraxBio
|-+  Return to Castle Wolfenstein
| |-+  Coding Tutorials
| | |-+  Dropable Weapons
« previous next »
Pages: [1] Print
Author Topic: Dropable Weapons  (Read 242 times)
SkreamerVirii
Administrator
Full Member
*****
Posts: 133


View Profile
« 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
 
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Free SMF 1.1.5 Forum Theme by Tamuril. © 2008.