Raised This Month: $51 Target: $400
 12% 

Request: Sandman Stun Restored?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doug22
New Member
Join Date: Nov 2018
Old 11-02-2018 , 16:51   Request: Sandman Stun Restored?
Reply With Quote #1

Is it possible to make the sandman back to what it used to be instead of just a slow? I'd really appreciate if someone could attempt to create a plugin that does this.
Doug22 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 11-02-2018 , 23:09   Re: Request: Sandman Stun Restored?
Reply With Quote #2

I was commissioned to write a plugin that changes the stun (not to revert it, though). I don't have the time nor motivation to write a properly reverted version, but here's some notes in case someone decides to take this on.
  1. Detour / hook CTFStunBall::ApplyBallImpactEffectOnVictim() with a pre-callback. I wrote mine before dynhooks was a thing, but either should be fine. Perform your stun logic there, and return MRES_Supercede.
  2. Projectiles use initial launch time to determine what distance they've traveled. It should be stored at m_iType + 0x04 on the projectile, but you may want to verify using a disassembly on the function mentioned right above around where gpGlobals is referenced (on Linux)
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 11-02-2018 at 23:10.
nosoop is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-03-2018 , 01:52   Re: Request: Sandman Stun Restored?
Reply With Quote #3

I found a Sandman Bonk plugin by Walgrim for you.
Link: https://forums.alliedmods.net/showpo...76&postcount=2
PC Gamer 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 12:07.


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