View unanswered posts | View active topics It is currently Fri Dec 27, 2024 11:20 pm



Reply to topic  [ 10 posts ] 
 Lure help 
Author Message
User avatar

Joined: Sun Jun 03, 2007 10:12 am
Posts: 86
Location: Finland
Reply with quote
Post Lure help
Im trying to make a grenade, which would lure computers actors so that they're interested to attack it. So if someone could please help me.


Wed Oct 17, 2007 1:29 am
Profile WWW
User avatar

Joined: Fri Dec 29, 2006 7:42 pm
Posts: 1871
Location: UK
Reply with quote
Post Re: Lure help
Make it an actor with explosive gibs.


Wed Oct 17, 2007 1:31 am
Profile
User avatar

Joined: Thu Aug 09, 2007 6:37 pm
Posts: 889
Location: Not Jewtown.
Reply with quote
Post Re: Lure help
Or just have the grenade spawn an actor, it's that simple. it needs to be near the enemies so they will target it though.


Wed Oct 17, 2007 1:35 am
Profile WWW

Joined: Tue Oct 16, 2007 6:22 am
Posts: 28
Reply with quote
Post Re: Lure help
Why not paste some Motherbrain script into it?


Wed Oct 17, 2007 1:41 am
Profile
User avatar

Joined: Sun Jun 03, 2007 10:12 am
Posts: 86
Location: Finland
Reply with quote
Post Re: Lure help
I have tried to make it an actor, but it hasnt worked. Im not really good at this, so I dont know really how to do those things, which you told me -.- I have even tried that motherbrain script thing, but I guess I have done something wrong.


Wed Oct 17, 2007 1:45 am
Profile WWW
User avatar

Joined: Thu Aug 09, 2007 6:37 pm
Posts: 889
Location: Not Jewtown.
Reply with quote
Post Re: Lure help
...because it will act as motherbrain, and it's just an overly complicated and fail way to go.


Wed Oct 17, 2007 1:47 am
Profile WWW

Joined: Tue Oct 16, 2007 6:22 am
Posts: 28
Reply with quote
Post Re: Lure help
Well, I'm the last person you'd want to ask for scripting advice, but seeing as all the enemies ALWAYS go for the motherbrain, I'd isolate the code that causes that and insert it into the grenade.


Wed Oct 17, 2007 1:48 am
Profile
User avatar

Joined: Sun Jun 03, 2007 10:12 am
Posts: 86
Location: Finland
Reply with quote
Post Re: Lure help
So if I made it an actor, how would I make it explode?


Wed Oct 17, 2007 1:55 am
Profile WWW
User avatar

Joined: Fri Dec 29, 2006 7:42 pm
Posts: 1871
Location: UK
Reply with quote
Post Re: Lure help
Set the gib as a TDexplosive (I think)


Wed Oct 17, 2007 1:56 am
Profile
User avatar

Joined: Sun Jun 03, 2007 10:12 am
Posts: 86
Location: Finland
Reply with quote
Post Re: Lure help
And how do I do that?

If someone could explain me what kind of things I need to do, im a rookie doing these things and this is what I have done so far for this...

Code:
AddActor = AHuman
InstanceName = Brain bomb
   AddToGroup = Bombs
   RestThreshold = -500
   Mass = 0.1
   Position = Vector
      X = 0
      Y = 0
   Velocity = Vector
      X = 0
      Y = 10
   HitsMOs = 1
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = Brain bomb.rte/Images/Grenade.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldCost = 20
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Tech
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Tech
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   BodyHitSound = Sound
      CopyOf = Metal Body Blunt Hit
   Status = 0
   Health = 1
   ImpulseDamageThreshold = 3000
   Team = 0
   AimAngle = 0
   AimDistance = 30
   CharHeight = 150
   HolsterOffset = Vector
      X = 0
      Y = 0

AddActor = Attachable
   InstanceName = Brain explonation
   Mass = 0.1
   HitsMOs = 1
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = Brain bomb.rte/Images/Grenade.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   EntryWound = AEmitter
      CopyOf = Wound Flesh Entry
   ExitWound = AEmitter
      CopyOf = Wound Flesh Exit
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         InstanceName = Brain explonation
         StructuralIntegrity = 30
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         InstanceName = Brain explonation
         StructuralIntegrity = 30
      Resolution = 4
      Depth = 10
   DeepCheck = 1
   JointStrength = 75
   JointStiffness = 0.5
   DrawAfterParent = 1
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Brain bomb Gib
      Count = 1
      Spread = 2.25
      MaxVelocity = 10
      MinVelocity = 1
   GibImpulseLimit = 125
   GibWoundLimit = 4
   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 = Brain Bomb Blast Ball
   ParticleNumberToAdd = 300
   AddParticles = MOPixel
      CopyOf = Brain Bomb Fragment Gray
   ParticleNumberToAdd = 20
   AddParticles = MOPixel
      CopyOf = Brain Bomb Fragment Yellow
   ParticleNumberToAdd = 300
   AddParticles = MOPixel
      CopyOf = Brain Bomb Air Blast


I have done separate gib file too

Code:
AddEffect = MOSRotating
   InstanceName = Brain bomb Gib
   Mass = 0.1
   Sharpness = 0.1
   HitsMOs = 1
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = Brain bomb.rte/Images/Grenade.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -3
      Y = -4
   AngularVel = 60
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Tech
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Tech
      Resolution = 4
      Depth = 1
   DeepCheck = 0


Now when CC tries to read it when starting, it just crashes without any error message


Wed Oct 17, 2007 10:43 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

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.029s | 13 Queries | GZIP : Off ]