#NEWLINE# def create( kernel ) : #NEWLINE# #INDENT# result = Weapon ( ) #NEWLINE# result . template = 'object/weapon/ranged/pistol/shared_pistol_cdef_noob.iff' #NEWLINE# result . attribute_template_id = 10 #NEWLINE# result . stfName ( 'weapon_name' , 'pistol_cdef_noob' ) #NEWLINE# result . setStringAttribute ( 'wpn_armor_pierce_rating' , 'None' ) #NEWLINE# result . setFloatAttribute ( 'wpn_attack_speed' , 4.5 ) #NEWLINE# result . setStringAttribute ( 'cat_wpn_damage.wpn_damage_type' , 'Energy' ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_damage.wpn_damage_min' , 20 ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_damage.wpn_damage_max' , 45 ) #NEWLINE# result . setFloatAttribute ( 'cat_wpn_damage.wpn_wound_chance' , 4.5 ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_rangemods.wpn_range_zero' , 0 ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_rangemods.wpn_range_mid' , 40 ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_rangemods.wpn_range_max' , ( - 80 ) ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_attack_cost.wpn_attack_cost_health' , 9 ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_attack_cost.wpn_attack_cost_action' , 20 ) #NEWLINE# result . setIntAttribute ( 'cat_wpn_attack_cost.wpn_attack_cost_mind' , 9 ) #NEWLINE# return kernel