Fire Phoenix Posted February 3, 2014 Share Posted February 3, 2014 Hey guys I've made an ion weapon for a vehicle and I got a problem with damage. Is it possible to make it damage only shields and after they're are 0 do not lower player's(vehicle's) hp? Link to comment
Tempust85 Posted February 3, 2014 Share Posted February 3, 2014 See if looking at the thermal detonator code will provide some assistance. I've noticed it will damage my shield down to 0 before I get any health reduced. Link to comment
Fire Phoenix Posted February 3, 2014 Author Share Posted February 3, 2014 Its not what I want. I only want to low down shields/armor and do not low hp after the armor is gone. Link to comment
Pande Posted February 3, 2014 Share Posted February 3, 2014 That's why he said to look at the thermal code, it is specifically damaging only armor at some point in the code. You can then ignore the part after where it checks for 0 armor and then proceeds to do damage to hp. By the way, ion weapons are canonically supposed to do at least a little bit of damage to organic nervous systems. Link to comment
Archangel35757 Posted February 3, 2014 Share Posted February 3, 2014 ..but shouldn't it do damage to droids? Link to comment
Fire Phoenix Posted February 3, 2014 Author Share Posted February 3, 2014 I guess you're right. Well that leads me to the dead end unless there is a way to make it damage vehicles and not damage players. Link to comment
Fire Phoenix Posted February 3, 2014 Author Share Posted February 3, 2014 Talking about the shields... Is it possible to make VH_WALKER not deflecting blasters? And please don't send me again to the source codes or smth. I have no idea what it is and I think dont want to know. Link to comment
therfiles Posted February 3, 2014 Share Posted February 3, 2014 Perhaps you could run a script on it (can you name vehicle npcs?) and set SET_SHIELDING to 0 via ICARUS using BehavED. Not sure if that would work however... Link to comment
eezstreet Posted February 3, 2014 Share Posted February 3, 2014 The Thermal does no special damage, it's just standard splash damage. Link to comment
Archangel35757 Posted February 3, 2014 Share Posted February 3, 2014 Can't you just add the logic code for what you are shooting & hitting and based on that tell it what kind of damage to do? Link to comment
Fire Phoenix Posted February 4, 2014 Author Share Posted February 4, 2014 Honsetly I have no idea what you're guys talking about xD. Anyway, here's the vehicle properties: droideka1{name droideka1type VH_WALKERnumHands 2hideRider 1killRiderOnDeath 1lookYaw 45lookPitch 45length 60width 60height 60centerOfGravity "-0.222 0 0"speedMax 500speedMin -80acceleration 8decelIdle 10strafePerc 0.5bankingSpeed 0.0rollLimit 2pitchLimit 0braking 10mouseYaw 0.003mousePitch 0.01turningSpeed 6turnWhenStopped 1traction 100friction 100maxSlope 0.7VehicleScale 70mass 10armor 450toughness 10model droidekaskin defaultradarIcon "gfx/menus/radar/atst"explosionRadius 400explosionDamage 1000explodeFX "ships/ship_explosion2"explosionDelay 2450soundOn "sound/chars/atst/atst_hatch_close.mp3"soundOff "sound/chars/atst/atst_hatch_open.mp3"weap1 droideka_red_laserweap1Delay 80weap1Aim 1weap1AmmoMax 120weap1AmmoRechargeMS 400weap1Link 0weap2 droideka_blue_laserweap2Delay 1400weap2Aim 0weap2AmmoMax 25weap2AmmoRechargeMS 3500weap2Link 2weapMuzzle1 droideka_red_laserweapMuzzle2 droideka_red_laserweapMuzzle3 droideka_blue_laserweapMuzzle4 droideka_blue_lasercameraOverride 1cameraRange 150cameraVertOffset 20cameraPitchOffset 15cameraFOV 100//This just doesn't work on levels with fog, so... leave it offcameraAlpha 0//cameraPitchDependantVertOffset 0shields 1000shieldRechargeMS 2000}Make it absorb every weapon shots. I've noticed that when I change VH_WALKER to VH_SPEEDER it works but it needs to be VH_WALKER to move like I want.Ion Weapon Code:droideka_blue_laser{name droideka_blue_laserprojectile 1ionWeapon 1saberBlockable 0muzzleFX "vehicles/droideka/IonBlaster/muzzle_flash"shotFX "vehicles/droideka/IonBlaster/projectile"impactFX "vehicles/droideka/IonBlaster/flesh_impact"g2MarkShader "vehicles/droideka/IonBlaster/wall_impact"g2MarkSize 16loopSound "sound/vehicles/weapons/ionblaster/ionloop.wav"speed 2500damage 170ammoPerShot 1} Link to comment
Fire Phoenix Posted February 5, 2014 Author Share Posted February 5, 2014 thanks for help.... (I didn't get any LOL) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now