1. /game/shared/hl2mp/weapon_frag.cpp is the weapon (viewmodel) for the HL2DM frag grenade /game/server/hl2/grenade_frag.cpp is the grenade entity itself (not the weapon)
2. There are some prototype grenades, satchels, tripmines, SMG grenades, etc. There are two versions for weapons because the SDK includes the source for HL2 and HL2DM. 3. RadiusDamage is called from CBaseGrenade::Explode via CBaseGrenade::Detonate.. you'll probably want to overload Detonate to call Explode with a different damage type other than DMG_BLAST. There're lots of damage flags you can use (in sharedefs.h) but some of them don't do anything to players and you'll probably want to override the player's OnTakeDamage to handle your damage type differently than it's handled by default. Good luck.. Regards, Paul On Sun, Jul 27, 2008 at 7:56 AM, Yorg Kuijs <[EMAIL PROTECTED]> wrote: > Hi, recently I had some troubles with a mod I was planning on making and > eventually started thinking more and more that it was to complicated to > make, during that time I got an idea for a different mod instead that > would be much more simplistic and could then be expanded without looking > incomplete. > 2 of the people that were on my previous project also agreed it was to > complicated anyway and hopped over as well. > > Like the first project however we still lack a coder, but the point of > this message is not to recruit one though so hear me out. > > The mod is gonna be called FragOut! and rather then convetional weapons > you get only grenades, not just the regular ones but different ones will > be available on spawn or pickup as well. > So codewise there's actually only 3 things to do: > 1. Using the tutorial on VDC make sure there's a working teammenu and > underlying team structure(I am however leaving mp_teamplay as a bool > rather then forcing it to be on, so the mod can be played as deatmatch > or team deathmatch) > 2. Make copies of the grenades and mod the code until they have the > desired effect > 3. Allow to pickup primed grenade with the use key like regular items > and increasing the throwing range(when pushing left mouse button) > > So since there isn't a huge lot to do besides these 2 things and maybe > some smaller things I figured since I attempted coding before(but hated > it) I could pull myself together and give it another spin though I have > no intention of keeping on doing the coding work. I plan to do a bit > small time code work on the grenades and hope that by then getting > content out a real coder can be attracted to work for the mod. > > Anyway since I have really little to none experience with coding and am > blindly seeking my through the code using bits of unhelpfull tutorials > to get me through the darkness I still have the following 3 questions > about grenade code unanswered: > 1. There seems to be alot of different .h and .cpp files on grenades, > such as frag.cpp weapon_grenade.cpp, grenade.cpp and so on. So now I > wonder, which of these is actually the grenade you get as a weapon and > can be multiplied to create multiple grenades with different effects? > 2. What is the purpose of all these other grenade files? > 3. I found things like damage and area of effect but I couldnt find the > actual effect upon detonating(such as being instructed to do damage on > detonate and show explosion effect), so where is the effect determined > and what would be involved to say change it to do things like freezing > players or pushing players(I know for one that there's wind entitties to > use for maps, would there be any way to incorporate wind effects to push > players into a grenade) > > Well hope you didn't find this mail to long, tried to keep it short but > didn't really work out. > > _______________________________________________ > 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

