Tue Jun 17, 2003 8:49 pm by Circumcisor
I'm assuming general knowledge of bini.etc
Back up your files first !
Try this for the turret:
[Munition
nickname = special_gun04_turret_ammo
hp_type = hp_gun
requires_ammo = false
hit_pts = 2
hull_damage = 1173
energy_damage = 0
one_shot_sound = fire_tachyon5
munition_hit_effect = sp_bloodhound_03_impact
const_effect = sp_bloodhound_03_proj
lifetime = 1.166
force_gun_ori = false
mass = 1
volume = 0.000100
[Gun
nickname = special_gun04_turret
ids_name = 263539
ids_info = 264539
DA_archetype = equipment\models\weapons\li_smlturret.cmp
material_library = equipment\models\li_equip.mat
HP_child = HPConnect
hit_pts = 6752
explosion_resistance = 1.000000
debris_type = debris_normal
parent_impulse = 20
child_impulse = 80
volume = 0.000000
mass = 10
hp_gun_type = hp_turret_special_10
damage_per_fire = 0
power_usage = 293
refire_delay = 0.500000
muzzle_velocity = 600
use_animation = Sc_fire
toughness = 19.600000
flash_particle_name = sp_bloodhound_03_flash
flash_radius = 15
light_anim = l_gun01_flash
projectile_archetype = special_gun04_turret_ammo
separation_explosion = sever_debris
auto_turret = true
turn_rate = 90
lootable = true
LODranges = 0, 20, 60, 100
(Copy this and append to weapon_equip.ini: don't forget to add the second square bracket around [gun and [munition )
Then in weapon_good.ini add this block
[Good
nickname = special_gun04_turret
equipment = special_gun04_turret
category = equipment
price = 115660
item_icon = equipment\models\commodities\nn_icons\EQUIPICON_turret.3db
combinable = false
ids_name = 263539
ids_info = 264539
shop_archetype = equipment\models\weapons\co_proton_cooker.cmp
material_library = equipment\models\ge_equip.mat
(Again don't forget the second square braket: this forum can't display them)
Finally add it to a base in market_misc.ini : we'll use Manhatten for now
[BaseGood
base = Li01_01_base
MarketGood = li_gun01_mark01, 0, -1, 10, 10, 0, 1
MarketGood = li_gun01_mark02, 0, -0.200000, 10, 10, 0, 1
etc
etc
Add this line
MarketGood = special_gun04_turret, 0, -1, 10, 10, 0, 1
Start the game, buy and enjoy
Notes
1. I've just hand written this, not tested it- hope there's no silly mistakes.
2. For cheaper price, change the price in weapon_good.ini
3. Info cards and names will all still say "Diamondback" without reference to it being a turret.
4. Play around with "refire_delay" to change firing rate (0.12 = 8.33, 0.25 = 4)
5. Muzzle_velocity = projectile speed but if you change this remember that the range is refire_delay x muzzle_velocity
6. power_usage is enormous at 293 - you'll probably want to change this !
Have fun.
C