Raised This Month: $ Target: $400
 0% 

[TF2] Extended Friendly Fire Extension?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DrWagstaff
SourceMod Donor
Join Date: Apr 2010
Location: Livermore
Old 07-28-2010 , 10:44   [TF2] Extended Friendly Fire Extension?
Reply With Quote #1

Hey guys. I use rtrigs to enable friendly fire at round end, till round start. One of the things that bugs me about this, is that engineers stuff is useless. Not only that, but the pyro flamethrower does nothing as well.

Would an extension be able to make all engineer gear friendly fire and make stuff like the flamethrower do FF damage?
DrWagstaff is offline
Send a message via AIM to DrWagstaff
SuperShadow
SourceMod Donor
Join Date: Jun 2008
Location: Westminster, MD
Old 07-28-2010 , 12:51   Re: [TF2] Extended Friendly Fire Extension?
Reply With Quote #2

We use this for enabling the sentries during humilitation: http://forums.alliedmods.net/showthread.php?p=879948

We have it set so that there is a 50% chance of them being active and a 50% chance of them betraying their original team. It keeps people on their toes at the end of round.

The flame thrower has never been able to damage teammates, if it could be done be an extension, then I'd be interested in running it too (plea to those that can code extensions).
SuperShadow is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-28-2010 , 18:37   Re: [TF2] Extended Friendly Fire Extension?
Reply With Quote #3

Quote:
Originally Posted by SuperShadow View Post
We use this for enabling the sentries during humilitation: http://forums.alliedmods.net/showthread.php?p=879948

We have it set so that there is a 50% chance of them being active and a 50% chance of them betraying their original team. It keeps people on their toes at the end of round.

The flame thrower has never been able to damage teammates, if it could be done be an extension, then I'd be interested in running it too (plea to those that can code extensions).
I'll look into it. No promises about anything.

What I've found so far:
Code:
CTFFlameEntity::OnCollideWithTeammate(CTFPlayer *pTeammate)
It seems to be the function checking whether or not the teammate is a sniper with the huntsman to light the arrow on fire.

EDIT: Finding a sig is difficult for this function....blarg
EDIT EDIT: I now have a sig, thanks to ivailosp, but it still needs tested and tweaked. The extension I made for proof-of-concept on Linux works beautifully.

Last edited by Afronanny; 07-29-2010 at 07:47.
Afronanny is offline
DrWagstaff
SourceMod Donor
Join Date: Apr 2010
Location: Livermore
Old 08-09-2010 , 01:42   Re: [TF2] Extended Friendly Fire Extension?
Reply With Quote #4

Quote:
Originally Posted by Afronanny View Post
I'll look into it. No promises about anything.

What I've found so far:
Code:
CTFFlameEntity::OnCollideWithTeammate(CTFPlayer *pTeammate)
It seems to be the function checking whether or not the teammate is a sniper with the huntsman to light the arrow on fire.

EDIT: Finding a sig is difficult for this function....blarg
EDIT EDIT: I now have a sig, thanks to ivailosp, but it still needs tested and tweaked. The extension I made for proof-of-concept on Linux works beautifully.
Can I use your proof of concept on my server?
DrWagstaff is offline
Send a message via AIM to DrWagstaff
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 11-08-2010 , 22:39   Re: [TF2] Extended Friendly Fire Extension?
Reply With Quote #5

I didn't see this until I fell over the CTFFlameEntity call Afronanny mentions ...

I've got it working on Linux, I need to get sigs for the CTFFlameEntity on Windows, then I'm in business...

Though I'm working on something larger and this is really more of a side project for me to test things on ;)



Which engineer stuff is useless?

---- edit ----

Added pyro snippet pyro snippet

Last edited by Swixel; 11-09-2010 at 05:45. Reason: link to pyro snippet
Swixel is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode