AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [TF2] Extended Friendly Fire Extension? (https://forums.alliedmods.net/showthread.php?t=133740)

DrWagstaff 07-28-2010 10:44

[TF2] Extended Friendly Fire Extension?
 
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?

SuperShadow 07-28-2010 12:51

Re: [TF2] Extended Friendly Fire Extension?
 
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).

Afronanny 07-28-2010 18:37

Re: [TF2] Extended Friendly Fire Extension?
 
Quote:

Originally Posted by SuperShadow (Post 1254238)
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.

DrWagstaff 08-09-2010 01:42

Re: [TF2] Extended Friendly Fire Extension?
 
Quote:

Originally Posted by Afronanny (Post 1254528)
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? :)

Swixel 11-08-2010 22:39

Re: [TF2] Extended Friendly Fire Extension?
 
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


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

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