Page 1 of 1

Meele attacks

Posted: July 3rd, 2012, 4:01 am
by iWhite
Hi.

Possible to make Meele attacks in RPG?

Re: Meele attacks

Posted: July 3rd, 2012, 3:28 pm
by Lou
I believe it is already coded by default.
Can someone confirm if a default attack is Melee or just Magic Casting?
Lou

Re: Meele attacks

Posted: July 3rd, 2012, 10:57 pm
by chocolatepie33
the default attacks are magic spells, but you can edit range and other stats to provide the appearance of a melee attack. in the development versions, we have "waterwars", which includes a chainsaw which deals damage. however, that's in fps mode.

Re: Meele attacks

Posted: July 5th, 2012, 10:50 am
by kddekadenz
/data/rpg/games/gamename/items/[integer].cfg

Code: Select all

//example RPG Melee weapon

r_item_name "Melee weapon"
r_item_icon "items/iconname.png"
r_item_description "A melee weapon."
r_item_mdl "path/to/model"
r_item_worth 15
r_item_weight 2
r_item_type $ITEM_WEAPON
r_item_script 7		//pickup script

r_item_use_new_weapon // 0
r_item_use_name "Melee weapon"
r_item_use_description "A melee weapon."
r_item_use_new_status 1 $STATUS_HEALTH 0.15  1
r_item_use_range 16
r_item_use_cost 0
r_item_use_slots $SLOT_RHAND
r_item_use_target $T_HORIZ
r_item_use_kickback 1
r_item_use_recoil 5
r_item_use_projeffect -1
r_item_use_traileffect 16
r_item_use_deatheffect -1