Teamattack offset
Hey guys :) Does anyone know offset for team attack? I need to set every attack as team attack, to do reduced damage. I've searched in https://forums.alliedmods.net/archiv...p/t-68113.html but nothing useful.
|
Re: Teamattack offset
For doing such thing you set attacker's team = victim's team, there' no other way (just looked at some half decompiled code)
|
Re: Teamattack offset
Quote:
Quote:
|
Re: Teamattack offset
Quote:
|
Re: Teamattack offset
Quote:
1) Make team attacks deal the same damage as normal attacks 2) Make normal attacks deal the same damage as team attacks I've tested team damage and it doesn't seem constant. Slashes in the foot deal 0.27 times reduced damage and slashes in the head deal 0.35 |
Re: Teamattack offset
I guess I misunderstood the topic. I see what he is asking now. This seems bizarre to me that there would be a difference between enemy attacks and team attacks, maybe it's a CS thing.
|
Re: Teamattack offset
In the middle of CBasePlayer::TakeDamage
PHP Code:
|
Re: Teamattack offset
:o sweet, now I exact damage reducement. Cause I didn't find offset, I was reducing myself by 0.33, but it wasn't precise. Than you meTaLiCroSS.
TehKonijn, actually it was working just fine in early releases, but after changing how round ends(from fake bot, to actuall player killing and round terminating) I forgot about this and just yesterday thought of this. :D |
| All times are GMT -4. The time now is 09:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.