Code: Select all
r_item_use_new_weapon // 0 - it's good practice to number these entries
//these slots are available in consume and armour use cases as well
r_item_use_name "Magic Arrow"
r_item_use_description "An arrow is conjoured from the caster's finger tip and flung at its target with sheer mental will."
r_item_use_cooldown 1500
//increases the strength of the spell with player skill or charging
r_item_use_chargeflags $CHARGE_MAG
// adds our status effect at 30% efficiency - with the above charge flag that means 30 damge
// its type is also "magic" which means its efficiency is reduced by magic resisting items.
r_item_use_new_status 1 $ATTACK_MAGIC 0.3
//these slots are available with armour use cases as well
r_item_use_slots $SLOT_LHAND
r_item_use_skill $SKILL_MAGIC
//these slots are exclusive to weapons
r_item_use_pflags $P_TIME
r_item_use_angle 0
r_item_use_lifetime 1000
r_item_use_gravity 0
r_item_use_projeffect 0 //substitute with your arrow's effect
r_item_use_traileffect 1 //substitute with your trail's effect
r_item_use_deatheffect -1 //replace with a suitable EoL effect
r_item_use_ammo -1 //use mana
r_item_use_cost 15 //uses 15 units of mana
r_item_use_kickback 10
r_item_use_recoil 10
r_item_use_target $T_SINGLE
r_item_use_speed 1.5 // in 100's of cubes a secondCode: Select all
r_item_name "Bow and Arrow"
r_item_description "The bow and arrow is really usefull for defending your-self against enemys."
r_item_mdl "bow"
r_item_use_new_weapon
r_item_use_name "Bow and Arrow"
r_item_use_description "The Bow and Arrow can be use to defend your-self against enemys"
r_item_use_cooldown 1000
r_item_use_chargeflags $CHARGE_MAG
r_item_use_new_status 1 $ATTACK_MARKSMAN 0.3
r_item_use_slots $SLOT_LHAND
r_item_use_pflags $P_TIME
r_item_use_angle 0
r_item_use_lifetime 1500
r_item_use_gravity 0
r_item_use_projeffect 0
r_item_use_traileffect 1
r_item_use_deatheffect -1
r_item_use_ammo 0
r_item_use_cost 1
r_item_use_kickback 10
r_item_use_recoil 10
r_item_use_target $T_SINGLE
r_item_use_speed 1.5It keeps poping up with an error msg saying "Using wrong knid of ammo" or something close to that
This is my 0.cfg file in the Ammo floder
Code: Select all
r_ammo_additem 4I have no clue what to do. How do I ake custom ammo, in this case I want it to shoot arrows
HELP!!



