Page 1 of 1
Melee example?
Posted: Sat Jul 12, 2008 7:50 am
by kiwi666
can anyone point me to a good melee weapon example. i am working on my fist project, a crash/spyro style 3d platform type game and want to make attacks using a invisible melee weapon. actually if anyone knows a better way to do this that would help too, but i really wanna find a good melee example weapon ini.
Re: Melee example?
Posted: Sat Jul 12, 2008 1:45 pm
by Dante
this one was posted by lykyn in the spanish forum:
jus modify the damage, the model, and the sounds, to make it look as u want
Code: Select all
[motosierra]
type = weapon
slot = 9///////////////The weapon slot
firerate = 1////////////////this isnt important
catagory = melee////////////////this is what tells the engine that this is a melee weapon
attribute = enemy_health
altattribute = enemy_health
ammopershot = 1
worksunderwater = true
damage = 30
meleexplosion = Smoke///////////////////the explosion grafics used when u hit someone. You can use this to make appear blood when you hit an enemy.
hitsound = weapon\motohit.wav
attacksound = weapon\motoshoot.wav
emptysound = weapon\click.wav
muzzleflash3rd = MuzzleFlash
;
; 1st person
;
viewactor = Weapon\v_motosierra.act
viewfillcolor = 255 255 255
viewambientcolor = 255 255 255
viewrotation = -53.7 89.10 1.7
viewoffset = -5.8 0.6 0.4
viewscale = 0.61
viewlaunchoffset = 0 0 25
viewlaunchbone = Bip01 R Hand
viewanimationspeed = 1
viewarmanim = Draw
viewidleanim = Idle
viewattackanim = Shootbig
viewaltattackanim = Shootbig
viewhitanim = Shootbighit///////this animation is played when you hit an enemy. remember to put an attack animation here, or it will look so bad
viewalthitanim = Shootbighit
viewwalkanim = Idle
muzzleflash = MuzzleFlash1
crosshair = crosshair.bmp
crosshairalpha = a_crosshair.bmp
crosshairfixed = false
allowlitcrosshair = true
crosshairlitcolor = 255 0 0
zoomamount = 2
zoomoverlay = zoomlow.bmp
zoomoverlayalpha = a_zoomlow.bmp
allowzoommove = false
recoilamount = 10
recoildecay = 5
bobamount = 10
viewreloadanim = Idle
viewkeyreloadanim = Idle
viewattackemptyanim = Idle
environmentmapping = true
allmaterial = false
percentmapping = 0
percentmaterial = 0
I hope it helps you
Re: Melee example?
Posted: Sun Jul 13, 2008 3:22 am
by kiwi666
thanks, this should help. i found a sword script too. the manual has little on melee, mostly projectile and 3d shooter oriented. I wanna eventually try to make a good FPS too, especially since RF seems to have multiplayer support. A 3d platform seemed like a simpler way too go, and i think it will be fun to do.
Re: Melee example?
Posted: Sun Jul 13, 2008 6:32 pm
by Lynkyn
You didint told me about this, -name of my game!- XDDDD
Re: Melee example?
Posted: Mon Jul 14, 2008 5:29 am
by Voltare
rf has mp support....just doesn't work all that great....
speaking of multiplayer/network code.........hey greywolf, qod...pnj, jay.....any clue why new code was written when there's already apparently useful mp code already in genesis3d?I know Rf comes from a reworking of ProjectX and Project Z, with a good bit of Rabid Framework tossed in there.But, some stuff seems to be either commented out, or gotten rid of compared to original g3d code.
Any clues here? And is there a way we can see if these code bits might work better or different in a good way than current Rf-specific code snippets?
And to you Espanol guys .....welcome aboard! Your models I found over 2 years ago, heh.
Re: Melee example?
Posted: Thu Jul 17, 2008 9:28 pm
by Dante
Lynkyn wrote:You didint told me about this, -name of my game!- XDDDD
im sorry i didnt have time to tell you, but if you posted this in public, i thought it was for helping anyone who needs it.
PS: Also, notice that i said YOU made it
Re: Melee example?
Posted: Fri Jul 18, 2008 5:38 pm
by Lynkyn
XDDDDDDDDD I was joking
So, Druggadict (Zidane) was who teach me how to make this