Weapon that hurts to fire

A place to discuss mods in development and concepts for new mods.
Post Reply
User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 798
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Weapon that hurts to fire

Post by TheLoneWolf » Sat May 21, 2016 4:27 pm

I was looking at the <FireEffect> element. It turns out that it just paints the muzzle flash. WHAT IF (I love to say that) we add thermoExplosion into it AND it actually hurts the player? That gives possibility for a powerful weapon that hurts to fire :D any ways to accomplish that?

And any way to make projectile explosions hurt the player too?

Like XYZ was killed off because they were too close when their Lucifer exploded :mrgreen:

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2834
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Re: Weapon that hurts to fire

Post by RPC » Sat May 21, 2016 4:41 pm

Yeah you can probably use SysCreateWeaponFire in <OnFireWeapon> to simulate the player killing themselves. I think there is also canHitSource="true" that you can add to the weapon description.
Tutorial List on the Wiki and Installing Mods
Image<----- click to get to #Transcendence IRC on Freenode
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

gunship256
Militia Commander
Militia Commander
Posts: 451
Joined: Sat Jul 25, 2015 11:41 pm
Location: repairing armor

Re: Weapon that hurts to fire

Post by gunship256 » Sat May 21, 2016 4:59 pm

artemisFowl made a weapon a few weeks ago that damage's the player's own armor when it's fired. Let me know if you're interested so I can remember to ask him for the code.

User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 798
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Re: Weapon that hurts to fire

Post by TheLoneWolf » Sun May 22, 2016 2:35 pm

gunship256 wrote:artemisFowl made a weapon a few weeks ago that damage's the player's own armor when it's fired. Let me know if you're interested so I can remember to ask him for the code.
You do that :D Thanks!

User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 798
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Re: Weapon that hurts to fire

Post by TheLoneWolf » Sun May 22, 2016 2:36 pm

RPC wrote:Yeah you can probably use SysCreateWeaponFire in <OnFireWeapon> to simulate the player killing themselves. I think there is also canHitSource="true" that you can add to the weapon description.
Won't that outright kill the player?

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2834
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Re: Weapon that hurts to fire

Post by RPC » Sun May 22, 2016 2:52 pm

@LoneWolf:
It might, but I'm assuming that the weapon isn't something like a howitzer. If you want to remove a set amount of HP, use this function in the <OnFireWeapon> of the weapon:

Code: Select all

(shpDamageArmor ship armorSegment damageType damage ['noSRSFlash]) -> damage done
Tutorial List on the Wiki and Installing Mods
Image<----- click to get to #Transcendence IRC on Freenode
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 798
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Re: Weapon that hurts to fire

Post by TheLoneWolf » Sun May 22, 2016 2:56 pm

@RPC
You've put me on my way towards success! Thank ya :D

Dice range works?

User avatar
RPC
Fleet Admiral
Fleet Admiral
Posts: 2834
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Re: Weapon that hurts to fire

Post by RPC » Sun May 22, 2016 3:02 pm

From the functionlist:

Code: Select all

(rollDice count sides bonus)
Tutorial List on the Wiki and Installing Mods
Image<----- click to get to #Transcendence IRC on Freenode
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.

User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 798
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Re: Weapon that hurts to fire

Post by TheLoneWolf » Sun May 22, 2016 3:19 pm

Thanks again!

gunship256
Militia Commander
Militia Commander
Posts: 451
Joined: Sat Jul 25, 2015 11:41 pm
Location: repairing armor

Re: Weapon that hurts to fire

Post by gunship256 » Sun May 22, 2016 3:27 pm

TheLoneWolf wrote:
gunship256 wrote:artemisFowl made a weapon a few weeks ago that damage's the player's own armor when it's fired. Let me know if you're interested so I can remember to ask him for the code.
You do that :D Thanks!
OK - I just sent him a PM. I may not get a reply for quite a while - possibly not even until September.

User avatar
TheLoneWolf
Militia Captain
Militia Captain
Posts: 798
Joined: Thu Nov 28, 2013 5:03 pm
Location: Aboard the CSS Radiant

Re: Weapon that hurts to fire

Post by TheLoneWolf » Sun May 22, 2016 4:45 pm

He's trying to do the opposite of hibernation, is he?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests