 |
Forum Info
|
 |
Forum Members: 18,677
Total Threads: 8,796
Posts: 95,827
Administrators:
DeeZire, Redemption
There are currently 31 users online.
|
 |
Partner Links
|
 |
 |
Advertisements
|
 |
|
| Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here. |
12-20-2003, 02:42 PM
|
#1 (permalink)
|
|
Senior Member
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
|
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-
|
|
|
12-20-2003, 06:31 PM
|
#2 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: UK
Posts: 676
|
It's in the projectile object code - NeutronCannonShell in the WeaponObjects.ini file 
|
|
|
12-21-2003, 01:13 AM
|
#3 (permalink)
|
|
Senior Member
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
|
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-
|
|
|
12-21-2003, 08:40 PM
|
#4 (permalink)
|
|
Senior Member
Join Date: Feb 2003
Location: USA
Posts: 853
|
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.

|
|
|
12-21-2003, 10:21 PM
|
#5 (permalink)
|
|
Senior Member
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
|
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?
|
|
|
12-22-2003, 08:19 AM
|
#6 (permalink)
|
|
Member
Join Date: Sep 2003
Posts: 33
|
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.
|
|
|
12-22-2003, 01:00 PM
|
#7 (permalink)
|
|
Senior Member
Join Date: Oct 2003
Location: Nevada, USA
Posts: 933
|
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?
|
|
|
12-22-2003, 02:24 PM
|
#8 (permalink)
|
|
Senior Member
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
|
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.
|
|
|
12-23-2003, 01:21 AM
|
#9 (permalink)
|
|
Senior Member
Join Date: Mar 2003
Location: northeastern USA
Posts: 133
|
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.
|
|
|
12-23-2003, 06:18 AM
|
#10 (permalink)
|
|
Senior Member
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
|
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.
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 10:37 PM.
|