Jump to content

an Ion Weapon


Recommended Posts

Posted

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? 

Posted

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.

Posted

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.

Posted

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.

Posted

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...

Posted

Honsetly I have no idea what you're guys talking about xD. Anyway, here's the vehicle properties: 

droideka1
{
name droideka1
type VH_WALKER
numHands 2
hideRider 1
killRiderOnDeath 1
lookYaw 45
lookPitch 45
length 60
width 60
height 60
centerOfGravity "-0.222 0 0"
speedMax 500
speedMin -80
acceleration 8
decelIdle 10
strafePerc 0.5
bankingSpeed 0.0
rollLimit 2
pitchLimit 0
braking 10
mouseYaw 0.003
mousePitch 0.01
turningSpeed 6
turnWhenStopped 1
traction 100
friction 100
maxSlope 0.7
VehicleScale 70
mass 10
armor 450
toughness 10
model droideka
skin default
radarIcon "gfx/menus/radar/atst"
explosionRadius 400
explosionDamage 1000
explodeFX "ships/ship_explosion2"
explosionDelay 2450
soundOn "sound/chars/atst/atst_hatch_close.mp3"
soundOff "sound/chars/atst/atst_hatch_open.mp3"

weap1 droideka_red_laser
weap1Delay 80
weap1Aim 1
weap1AmmoMax 120
weap1AmmoRechargeMS 400
weap1Link 0

weap2 droideka_blue_laser
weap2Delay 1400
weap2Aim 0
weap2AmmoMax 25
weap2AmmoRechargeMS 3500
weap2Link 2

weapMuzzle1 droideka_red_laser
weapMuzzle2 droideka_red_laser
weapMuzzle3 droideka_blue_laser
weapMuzzle4 droideka_blue_laser

cameraOverride 1
cameraRange 150
cameraVertOffset 20
cameraPitchOffset 15
cameraFOV 100
//This just doesn't work on levels with fog, so... leave it off
cameraAlpha 0
//cameraPitchDependantVertOffset 0
shields 1000
shieldRechargeMS 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_laser
projectile 1
ionWeapon 1
saberBlockable 0
muzzleFX "vehicles/droideka/IonBlaster/muzzle_flash"
shotFX "vehicles/droideka/IonBlaster/projectile"
impactFX "vehicles/droideka/IonBlaster/flesh_impact"
g2MarkShader "vehicles/droideka/IonBlaster/wall_impact"
g2MarkSize 16
loopSound "sound/vehicles/weapons/ionblaster/ionloop.wav"
speed 2500
damage 170
ammoPerShot 1
}
 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...