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

TF2: Roll the Dice RTD - v0.4


Post New Thread Reply   
 
Thread Tools Display Modes
93SHADoW
AlliedModders Donor
Join Date: Jul 2014
Location: Houston, TX
Old 01-15-2016 , 07:48   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1491

Here's what i've been running.

Changes:
  • Ice ragdoll fix
  • Allowed all tf_projectile entities to be used for homing projectiles perk (no longer limited to arrows, rockets, flares).
  • Using this method instead of OnPlayerRunCmd for Freeze Perk to block input:
    Code:
    for(new slot=0;slot<=5;slot++)
    {
    	new weapon=GetPlayerWeaponSlot(client, slot);
    	if(weapon && IsValidEdict(weapon))
    	{
    		SetEntPropFloat(weapon, Prop_Send, "m_flNextPrimaryAttack", GetGameTime()+flDuration);
    	}
    }
    SetEntPropFloat(client, Prop_Send, "m_flNextAttack", GetGameTime()+flDuration);
    if(TF2_GetPlayerClass(client)==TFClass_Spy)
    {
    	SetEntPropFloat(client, Prop_Send, "m_flStealthNextChangeTime", GetGameTime()+flDuration);
    }
Attached Files
File Type: sp Get Plugin or Get Source (rtd.sp - 554 views - 100.0 KB)
File Type: smx rtd.smx (49.3 KB, 274 views)
File Type: inc rtd.inc (1.4 KB, 251 views)
__________________

Last edited by 93SHADoW; 01-15-2016 at 08:01.
93SHADoW is offline
Send a message via AIM to 93SHADoW Send a message via Skype™ to 93SHADoW
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-15-2016 , 12:30   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1492

Quote:
Originally Posted by SHADoW NiNE TR3S View Post
Here's what i've been running.

Changes:
  • Ice ragdoll fix
  • Allowed all tf_projectile entities to be used for homing projectiles perk (no longer limited to arrows, rockets, flares).
  • Using this method instead of OnPlayerRunCmd for Freeze Perk to block input:
    Code:
    for(new slot=0;slot<=5;slot++)
    {
        new weapon=GetPlayerWeaponSlot(client, slot);
        if(weapon && IsValidEdict(weapon))
        {
            SetEntPropFloat(weapon, Prop_Send, "m_flNextPrimaryAttack", GetGameTime()+flDuration);
        }
    }
    SetEntPropFloat(client, Prop_Send, "m_flNextAttack", GetGameTime()+flDuration);
    if(TF2_GetPlayerClass(client)==TFClass_Spy)
    {
        SetEntPropFloat(client, Prop_Send, "m_flStealthNextChangeTime", GetGameTime()+flDuration);
    }
Wonderful, going to add this to my plugin. Thank you!
404UserNotFound is offline
Baklap4
Member
Join Date: Feb 2016
Old 03-02-2016 , 13:10   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1493

Does this work with admin_overrides?
I see there is a sm_rtd_admin but when i put that in admin_overrides it doesn't work?
Baklap4 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 03-02-2016 , 13:21   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1494

For some reason, sm_rtd_admin is a cvar and not an override. You set the cvar to whatever flag you wish the command to require.
__________________
ddhoward is offline
Baklap4
Member
Join Date: Feb 2016
Old 03-02-2016 , 13:22   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1495

Hmm it seems i also have another rtd plugin instead of this one sorry
Baklap4 is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 03-04-2016 , 06:40   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1496

Quote:
Originally Posted by SHADoW NiNE TR3S View Post
  • Allowed all tf_projectile entities to be used for homing projectiles perk (no longer limited to arrows, rockets, flares).
But no other projectiles work with that homing technique, is allowing all of them really necessary?
Phil25 is offline
SirDigby
Junior Member
Join Date: Feb 2016
Old 03-14-2016 , 04:02   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1497

Found an exploit with toxic and timebomb. Not sure if it's just the above code or the original too.

If a player that has rolled toxic dies from a timebomb or instant kills--any death by rtd, presumably (Normal deaths or suicide dont work, from testing) and quickly clicks to spectate enemy players, the toxic kills the spectated player.

A dodgy fix that should work is adding the following code into Event_PlayerDeath. Right after if(iAttacker ...)
PHP Code:
if(g_nPlayerData[iVictim][g_nPlayerState] == STATE_ROLLING)
TerminateEffect(iVictimg_nPlayerData[iVictim][g_nPlayerPerk], false); 

Last edited by SirDigby; 03-14-2016 at 04:17. Reason: Found a fix, maybe?
SirDigby is offline
mclucario
Junior Member
Join Date: Mar 2016
Old 03-23-2016 , 05:48   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1498

Can you guys release the Homing Rocket part as single addon or add a script that I can make it permanent forced on users. That would help me really out.

Edit: This version is the only one that actually dodges walls.

Last edited by mclucario; 03-23-2016 at 05:51.
mclucario is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 04-02-2016 , 10:07   Re: TF2: Roll the Dice RTD - v0.4
Reply With Quote #1499

Quote:
Originally Posted by mclucario View Post
Can you guys release the Homing Rocket part as single addon or add a script that I can make it permanent forced on users. That would help me really out.
You can check out this version, with which I "extracted" all the perks. It's pretty simple to convert individual ones to a separate plugins from there.
Phil25 is offline
drhax9908
Member
Join Date: Oct 2014
Old 01-21-2017 , 01:35   Re: TF2: Roll the Dice RTD - v0.4 - NEW!
Reply With Quote #1500

Quote:
Originally Posted by TyanColte View Post
Never mind i fixed it, apparently if you add NormalSHook to the function name it defines the prototype so the edited code looks like this
Code:
AddNormalSoundHook(NormalSHook:SoundHook)

I know your post is from 2015, however, i had actually posted the same fix almost two months before you made that post. It's literally on the page before your post. Also, your fix has a typo,

Quote:
Originally Posted by TyanColte View Post
AddNormalSoundHook(NormalSHook:SoundHook)
that code is broken. The proper fix is
Code:
AddNormalSoundHook(NormalSHook:NormalSoundHook);

See here for my fix post. It has a compiled version of the fixed plugin as well as the fixed .sp
drhax9908 is offline
Reply


Thread Tools
Display Modes

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 09:38.


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