Melee example?

Topics regarding Scripting with Reality Factory
Post Reply
kiwi666
Posts: 4
Joined: Sat Jul 12, 2008 7:41 am

Melee example?

Post 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.
Dante
Posts: 21
Joined: Thu Jun 26, 2008 7:20 pm

Re: Melee example?

Post 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 :P
There never was a good war or a bad peace.
-Benjamin Franklin
kiwi666
Posts: 4
Joined: Sat Jul 12, 2008 7:41 am

Re: Melee example?

Post 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.
Lynkyn
Posts: 48
Joined: Sat Jun 21, 2008 2:17 pm

Re: Melee example?

Post by Lynkyn »

You didint told me about this, -name of my game!- XDDDD
Voltare
Posts: 263
Joined: Tue Jul 05, 2005 10:36 am

Re: Melee example?

Post 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.
Dante
Posts: 21
Joined: Thu Jun 26, 2008 7:20 pm

Re: Melee example?

Post 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
There never was a good war or a bad peace.
-Benjamin Franklin
Lynkyn
Posts: 48
Joined: Sat Jun 21, 2008 2:17 pm

Re: Melee example?

Post by Lynkyn »

XDDDDDDDDD I was joking :lol:

So, Druggadict (Zidane) was who teach me how to make this :)
Post Reply