View unanswered posts | View active topics It is currently Tue Apr 22, 2025 2:37 pm



Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next
 Martyrdom? 
Author Message
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Martyrdom?
*sigh*

TrouserDemon, you DO NOT KNOW HOW TO MOD.

Please stop telling people how to do it.

Okay, so, here we go.

To make the clones gib a bomb upon death, go into Base.rte/Devices/Explosives/Explosives.ini (I believe that's the filename, anyways it's the only .ini in there)

Then, scroll down to the bottom, underneath the normal Frag Grenade code.

Paste this:
Code:
AddDevice = TDExplosive
[tab]CopyOf = Frag Grenade
[tab]InstanceName = Gib Bomb
[tab]TriggerDelay = 99999
[tab]GibImpulseLimit = 1
[tab]AddGib = Gib
[tab][tab]GibParticle = MOSParticle
[tab][tab][tab]CopyOf = Side Thruster Blast Ball 1
[tab][tab]Count = 10
[tab][tab]Spread = 3.14
[tab][tab]MaxVelocity = 70
[tab][tab]MinVelocity = 70
[tab]AddGib = Gib
[tab][tab]GibParticle = MOPixel
[tab][tab][tab]CopyOf = Grenade Fragment Gray
[tab][tab]Count = 20
[tab][tab]Spread = 3.14
[tab][tab]MaxVelocity = 70
[tab][tab]MinVelocity = 70
[tab]AddGib = Gib
[tab][tab]GibParticle = MOPixel
[tab][tab][tab]CopyOf = Grenade Fragment Yellow
[tab][tab]Count = 20
[tab][tab]Spread = 3.14
[tab][tab]MaxVelocity = 70
[tab][tab]MinVelocity = 70
[tab]AddGib = Gib
[tab][tab]GibParticle = MOPixel
[tab][tab][tab]CopyOf = Air Blast
[tab][tab]Count = 30
[tab][tab]Spread = 3.14
[tab][tab]MaxVelocity = 70
[tab][tab]MinVelocity = 70


Replace all the [tab] lines with actual tabs.

This will make a copy of the Frag Grenade, but this copy will gib on impact.

Now, go to the Actor.ini, scroll down to the AddActor = AHuman line (it's going to be at the bottom), and paste this in:
Code:
[tab]AddGib = Gib
[tab][tab]GibParticle = TDExplosive
[tab][tab][tab]CopyOf = Gib Bomb
[tab][tab]Count = 1
[tab][tab]Spread = 3.14
[tab][tab]MaxVelocity = 30
[tab][tab]MinVelocity = 30


Paste this after all the other gibs, save both .inis, and then reload the game. Should work.


Wed Dec 12, 2007 3:25 am
Profile

Joined: Thu Nov 15, 2007 5:49 pm
Posts: 98
Reply with quote
Post Re: Martyrdom?
Code:
AddGib = Gib
      GibParticle = Grenade Fragment Yellow
         CopyOf = Air Blast
      Count = 20
      Spread = 2.25
      MaxVelocity = 65
      MinVelocity = 2


What's wrong with this? : [


Wed Dec 12, 2007 3:30 am
Profile
User avatar

Joined: Wed Jun 06, 2007 8:01 pm
Posts: 159
Location: I have the power!
Reply with quote
Post Re: Martyrdom?
GibParticle = Grenade Fragment Yellow

Should be

GibParticle = MOSRotating

^ I do believe.

Code:
[tab]AddGib = Gib
[tab][tab]GibParticle = TDExplosive  <<< THIS LINE HERE
[tab][tab][tab]CopyOf = Gib Bomb
[tab][tab]Count = 1
[tab][tab]Spread = 3.14
[tab][tab]MaxVelocity = 30
[tab][tab]MinVelocity = 30


Hope that helps :D


Last edited by kamakazibob on Wed Dec 12, 2007 3:35 am, edited 1 time in total.



Wed Dec 12, 2007 3:33 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Martyrdom?
GibParticle is meant to define the particle TYPE, not the particle name.

Grenade Fragment Gray, Grenade Fragment Yellow, Air Blast, etc, all fall under the CATEGORY heading MOPixel.

The various particle types are as follows:

MOPixel
MOSParticle
MOSRotating
HDFirearm
TDExplosive
HeldDevice
Attachable
And there's several more, but listing them is irrelevant and time consuming.

Basically, what you did was try to define Air Blast as a particle type "Grenade Fragment Gray".

That's not how it works.

Look at my large post, it explains how to get it working.

kamakazibob wrote:
GibParticle = Grenade Fragment Yellow

Should be

GibParticle = MOSRotating

^ I do believe.



Is wrong :D
It's an MOPixel. But you grasped the basic idea.


Wed Dec 12, 2007 3:34 am
Profile

Joined: Thu Nov 15, 2007 5:49 pm
Posts: 98
Reply with quote
Post Re: Martyrdom?
I tried placing in the first code right under the original grenade code and it keeps telling me there is an error at line 71.. and I'm assuming that's where the code starts.
Again, I apologize for my idiocy.


Wed Dec 12, 2007 3:51 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Martyrdom?
Don't worry about it; my guide may well be inaccurate, I typed it up without testing.

Here, try this, and, remember, underneath all the other code.

Code:
AddDevice = TDExplosive
   CopyOf = Frag Grenade
   InstanceName = Gib Bomb
   TriggerDelay = 99999
   GibImpulseLimit = 1
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Side Thruster Blast Ball 1
      Count = 10
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Grenade Fragment Gray
      Count = 20
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Grenade Fragment Yellow
      Count = 20
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Air Blast
      Count = 30
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70


Wed Dec 12, 2007 3:54 am
Profile

Joined: Thu Nov 15, 2007 5:49 pm
Posts: 98
Reply with quote
Post Re: Martyrdom?
Bleh. :-(

I tried pasting it RIGHT under (No space in between new code and original code) And then again with a space and neither worked.


Wed Dec 12, 2007 3:56 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Martyrdom?
Are you using my code to add it to the actor?

I really can't fathom the problem; the code loads fine for me.


Wed Dec 12, 2007 3:59 am
Profile

Joined: Thu Nov 15, 2007 5:49 pm
Posts: 98
Reply with quote
Post Re: Martyrdom?
I posted the code you posted last under the grenades .ini file.
I also pasted the second code in your first post under a skeleton actor's AddHuman section. Right under it.


Wed Dec 12, 2007 4:01 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Martyrdom?
Ohhhhh, okay, problem found, I do believe.

Okay, so, here you go. You need to paste the AddGib code for the Gib Bomb into the skeleton code here:

Code:
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Skeleton Body Gib E
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1

   AddGib = Gib
      GibParticle = TDExplosive
         CopyOf = Gib Bomb
      Count = 1
      Spread = 3.14
      MaxVelocity = 30
      MinVelocity = 30

   GibImpulseLimit = 1000
   GibWoundLimit = 6
   GibSound = Sound
      CopyOf = Bone Crack


So if you look in the code, see where it needs to go, and then paste it in, it'll work.


Wed Dec 12, 2007 4:06 am
Profile

Joined: Thu Nov 15, 2007 5:49 pm
Posts: 98
Reply with quote
Post Re: Martyrdom?
I'm getting the error in the grenade's explosive ini., though.

My code looks like this.. It should be right(?)

*Edit* It says I'm getting an error at line 13.

Code:
AddDevice = TDExplosive
   InstanceName = Frag Grenade
   AddToGroup = Bombs
   Mass = 2
   RestThreshold = -500
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Devices/Explosives/FragGrenade.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 5
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   JointStrength = 75
   JointStiffness = 0.5
   DrawAfterParent = 1
   DetonationSound = Sound
      AddSample = ContentFile
         Path = Base.rte/Sounds/Explode2.wav
   StanceOffset = Vector
      X = -12
      Y = -5
   StartThrowOffset = Vector
      X = -12
      Y = -5
   EndThrowOffset = Vector
      X = -12
      Y = -5
   TriggerDelay = 2500
   ParticleNumberToAdd = 10
   AddParticles = MOSParticle
      CopyOf = Side Thruster Blast Ball 1
   ParticleNumberToAdd = 20
   AddParticles = MOPixel
      CopyOf = Grenade Fragment Gray
   ParticleNumberToAdd = 20
   AddParticles = MOPixel
      CopyOf = Grenade Fragment Yellow
   ParticleNumberToAdd = 30
   AddParticles = MOPixel
      CopyOf = Air Blast
AddDevice = TDExplosive
   CopyOf = Frag Grenade
   InstanceName = Gib Bomb
   TriggerDelay = 99999
   GibImpulseLimit = 1
   AddGib = Gib
      GibParticle = MOSParticle
         CopyOf = Side Thruster Blast Ball 1
      Count = 10
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Grenade Fragment Gray
      Count = 20
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Grenade Fragment Yellow
      Count = 20
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Air Blast
      Count = 30
      Spread = 3.14
      MaxVelocity = 70
      MinVelocity = 70


Wed Dec 12, 2007 4:09 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Martyrdom?
That code works fine for me.

I really cannot fathom the issue.


Wed Dec 12, 2007 4:22 am
Profile

Joined: Thu Nov 15, 2007 5:49 pm
Posts: 98
Reply with quote
Post Re: Martyrdom?
Ok, well apparently I fudged up the code to the original grenade somehow.
Do you think you could post whatever is in your explosive .ini for me? :oops:
Thanks for all your help so far.. I didn't think this would be such a big ordeal.


Wed Dec 12, 2007 4:27 am
Profile
User avatar

Joined: Fri Dec 22, 2006 12:47 pm
Posts: 181
Location: I am the monkey. I can go ANYWHERE.
Reply with quote
Post Re: Martyrdom?
You could have it gib an emitter that has a very slow emission rate, so that it wouldn't emit an explosion for a few seconds.


Thu Dec 13, 2007 12:39 pm
Profile
User avatar

Joined: Fri Jan 05, 2007 6:34 pm
Posts: 580
Reply with quote
Post Re: Martyrdom?
Here's my idea. It gibs an actor and a small explosion that's weak enough that it only damages the weak actor. Actor bleeds to death in two to three seconds, explodes.

Would it work? I think it'd be better than one that explodes instantly. That's just an actor that explodes as soon as he dies. It's been done before. With a timed grenade, it allows the enemy to get away, but if they don't, they die.

Yes, unlike normal grenades where they don't really see them, they would see an actor and head for the hills. Or shoot at it. Not sure.


Thu Dec 13, 2007 10:30 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 32 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.061s | 13 Queries | GZIP : Off ]