View unanswered posts | View active topics It is currently Sat Jan 11, 2025 6:12 pm



Reply to topic  [ 9 posts ] 
 How do you make a Gun fire something besides a Bullet? 
Author Message
User avatar

Joined: Sun Mar 04, 2007 11:22 pm
Posts: 254
Location: In my happy and/or unhappy place.
Reply with quote
Post How do you make a Gun fire something besides a Bullet?
I searched for an answer, and did not get one.

So my question is, how do I make a Gun, a normal Gun, fire something like, a laser, or something like that? I know I can change the color of the bullet, but, is there any other way?


Thu Mar 06, 2008 1:32 am
Profile WWW
User avatar

Joined: Fri Dec 29, 2006 7:42 pm
Posts: 1871
Location: UK
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
If you mean a laser like on my Uber Cannon, that's just a muzzle flash that looks like a laser, the gun really shoots hundreds of invisible bullets.


Thu Mar 06, 2008 1:35 am
Profile
User avatar

Joined: Sun Mar 04, 2007 11:22 pm
Posts: 254
Location: In my happy and/or unhappy place.
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
No, I mean like a Rifle kind of thing, is that JUST color change?

And also, there were mods where someone fired a block, how do I do that? Is that just a Muzzle Flash with weight added to it?


Thu Mar 06, 2008 1:37 am
Profile WWW
User avatar

Joined: Fri Dec 29, 2006 7:42 pm
Posts: 1871
Location: UK
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
It's where the gun shoots an MOSRotating.

I don't think you can fire a muzzle flash.

I reserve the right to be completely wrong.


Thu Mar 06, 2008 1:48 am
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
TrouserDemon wrote:
It's where the gun shoots an MOSRotating.

I don't think you can fire a muzzle flash.

I reserve the right to be completely wrong.


I reserve the right to tell you that you are wrong.

Attachables are pretty much MOSRotatings with joint code.

Pistol2 literally fires a muzzle flash.
Pistol3 fires a modified muzzle flash (you'll see why I modified it after you fire Pistol2).
Attachment:
File comment: Fires a freakin' muzzle flash.
firinmahflash.rte.rar [1.32 KiB]
Downloaded 141 times


Thu Mar 06, 2008 2:02 am
Profile
User avatar

Joined: Sun Mar 04, 2007 11:22 pm
Posts: 254
Location: In my happy and/or unhappy place.
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
SWEET.

But, which Color Code do I change in the Gun.ini to get color change?
Code:
AddAmmo = Round
   InstanceName = Round Gun Template
   ParticleCount = 1
   Particle = MOPixel
      InstanceName = Particle Gun Template
      Mass = 0.008
      RestThreshold = 500
      LifeTime = 1500
      Sharpness = 250
      HitsMOs = 1
      GetsHitByMOs = 0
      Color = Color
         R = 143
         G = 143
         B = 143    This one we'll call Number 1
      Atom = Atom
         Material = Material
            CopyOf = Bullet Metal
         TrailColor = Color
            R = 155
            G = 155
            B = 155  Number 2
         TrailLength = 25
   Shell = MOSParticle
      CopyOf = Gun Template Casing
   FireVelocity = 80
   ShellVelocity = 10
   Separation = 5

AddAmmo = Round
   CopyOf = Round Gun Template
   InstanceName = Round Gun Template Tracer
   ParticleCount = 1
   Particle = MOPixel
      CopyOf = Particle Gun Template
      InstanceName = Particle Gun Template Tracer
      RestThreshold = 500
      LifeTime = 1500
      HitsMOs = 1
      GetsHitByMOs = 0
      Color = Color
         R = 247
         G = 247
         B = 147  Number 1A
      Atom = Atom
         Material = Material
            CopyOf = Bullet Metal
         TrailColor = Color
            R = 255
            G = 255
            B = 159  Number 2A
         TrailLength = 45



And what do I change them to to get a Blue color? Maybe the Blue Glow even.


Thu Mar 06, 2008 2:17 am
Profile WWW
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
1: pixel color of the regular round
2: trail color of the regular round
1A: pixel color of the tracer round
2A: trail color of the tracer round

Blue glow is
R = 220
G = 250
B = 240

for general blues
R = 0 (increase for brighter)
G = 0 (increase for brighter)
B = 255 (decrease for darker)


Thu Mar 06, 2008 3:10 am
Profile
User avatar

Joined: Wed Nov 21, 2007 7:49 pm
Posts: 189
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
All you have to do is change the ammo to a MOSRotating, and give it MOSRotating properties. So, where it says AddAmmo = Round, change it to AddAmmo = MOSRotating, and since you seem new, copy in the properties of another MOSRotating over the previous properties, and change them to your needs.


Thu Mar 06, 2008 4:01 am
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: How do you make a Gun fire something besides a Bullet?
It's a bit different than that if you want to define the MOSRot like you would a MOPixel round.

Open base.rte/ammo.ini
Go down to the test head round.

That would be an example of a MOSRot round, defined in the way regular MOPixel Rounds are defined.


And in the copying of an independently defined object way, using Addammo is also unnecessary, it can be defined as an effect, actor, whatever, and still be designated as the round.


Thu Mar 06, 2008 5:16 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 9 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.068s | 15 Queries | GZIP : Off ]