logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,677
Total Threads: 8,796
Posts: 95,827

Administrators:
DeeZire, Redemption

There are currently 31 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 12-20-2003, 02:42 PM   #1 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default Neutron Question

Hi all!

I'm making my own weapon, and I want to make it so it can disable infantry, and make vehicles neutral. Just like the neutron mines or nuke cannon.

Well, my question is this, how do I make it disable infantry and make vehicles neutral? I can't find any special lines in the weapon.INI.

Can anybody help me...?

Thanks,
-Mishkin--The Russian Dude-
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-20-2003, 06:31 PM   #2 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: UK
Posts: 676
Send a message via MSN to DJRowley
Default

It's in the projectile object code - NeutronCannonShell in the WeaponObjects.ini file
DJRowley is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-21-2003, 01:13 AM   #3 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

Ok, got everything A-OK, except when this tank uses it's weapon, it doesnt blow up, it can still be controlled like normal, only it can't fire it's weapon.
How do I fix this?

WEAPON.INI

Weapon SuicideTankNeutronBombWeapon
PrimaryDamage = 1.0
PrimaryDamageRadius = 10.0
ScatterRadiusVsInfantry = 10.0
DamageDealtAtSelfPosition = Yes
AttackRange = 1.0
DamageType = EXPLOSION
DeathType = SUICIDED
WeaponSpeed = 99999.0
ProjectileObject = NukeTruckNeutronBlastObject
FireFX = Neutron_WeaponFX_NukeCannon
FireSound = NukeCannonWeapon
RadiusDamageAffects = SUICIDE SELF ENEMIES NEUTRALS NOT_SIMILAR NOT_AIRBORNE
DelayBetweenShots = 0
ClipSize = 1
ClipReloadTime = 0
AutoReloadsClip = No
End

Keep in mind, that this is an upgraded weapon, kind of like the high-explosive weapon for the bomb truck.

Thanks,
-Mishkin--The Russian Dude-
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-21-2003, 08:40 PM   #4 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 853
Send a message via AIM to mastermind2003 Send a message via MSN to mastermind2003
Default

A primary damage of 1 isn't enough to kill your unit. If you want the unit to die, you need to make sure that it does enough damage to itself to kill it. You could use a different damage type, which probably would help.
mastermind2003 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-21-2003, 10:21 PM   #5 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

No, I don't think that is the problem. My units healh is 250.0, I tried increasing the primarydamage on the weapon to 251.0, but it didnt work, I tried changing the damagetype, it didn't work.

After detonating itself, the unit still can be controlled like normally, only it cant use the weapon anymore, and it's health is fine 2.

Any other ideas?
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-22-2003, 08:19 AM   #6 (permalink)
Member
 
Join Date: Sep 2003
Posts: 33
Default

it cant use its weapon because

ClipSize = 1
ClipReloadTime = 0
AutoReloadsClip = No

as for not dying, i think it has to do with the Gla bomb truck vehicle ini.
LynX2oo3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-22-2003, 01:00 PM   #7 (permalink)
Senior Member
 
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
Default

My problem is that the unit wont die when it explodes. I want it to DIE!

I'm not being rude or anything, but can't somebody give me an answer?
Mishkin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-22-2003, 02:24 PM   #8 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Rather than trying to create the effect together with the unit dying by adding another object, why not allow the death itself to trigger the detonation? Just add the NeutronBlastBehavior module to the unit itself, and then whenever the unit is destroyed, it will detonate (at least it should). If you only want it to detonate when you push the button or when it fires a weapon (not when anything else blows it up), you'll need something slightly more complicated, but post again if that's what you need.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-23-2003, 01:21 AM   #9 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: northeastern USA
Posts: 133
Default

yeah, just check out the bomb truck code. there is part of it that is "firesweaponwhendead" or something to that extent. i think thats what you may want.

music suggestion: Interpol. they are awesome.
MisterGoid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-23-2003, 06:18 AM   #10 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

Well AFAIK you don't need FireWeaponWhenDeadBehavior to create a neutron blast. NeutronBlastBehavior could actually be more appropriately named "CreateNeutronBlastWhenDeadBehavior". It is not a weapon, but the destruction of an object that creates the blast.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Power Particle Strike, Neutron Warhead, HE/BIO Warhead FleetCommand Generals & Zero Hour Editing 45 12-08-2004 02:02 PM
Neutron shells for nuke Gen. Vanguard Generals & Zero Hour Editing 8 05-27-2004 01:25 PM
creating a more accurate neutron bomb Kaldak Generals & Zero Hour Editing 8 10-08-2003 06:25 PM


All times are GMT -4. The time now is 10:37 PM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.