Raised This Month: $ Target: $400
 0% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-03-2010 , 10:14   Re: Module: Orpheu2.3a
Reply With Quote #581

freezetime is something global to all players. You don't need orpheu. When the freezetime starts, the player's maxspeed is just set to 1.0, thus unable to move.

When the speed needs to be reset, it calls actually CBasePlayer::ResetMaxSpeed(). Function called on player.

Code:
void CBasePlayer::ResetMaxSpeed() {     float speed;     if ( pev->iuser1 )     {         speed = 900.0;     }     else if ( g_pGameRules->IsMultiplayer() && g_pGameRules->IsFreezePeriod() )     {         speed = 1.0;     }     else if ( m_bIsVIP )     {         speed = 227.0;     }     else if ( m_pActiveItem )     {         speed = m_pActiveItem->GetMaxSpeed();     }     else     {         speed = 240.0;     }     pev->maxspeed = speed; }

So, all you need to do :

- Hooking this function as post. ( You can use Ham, hook simply Ham_Item_PreFrame on "player", it's the same )
- Setting the weapon speed for the player you want. Then simply call Ham_CS_Item_GetMaxSpeed as param the active weapon (m_pActiveItem offset) and save the result in pev_maxspeed. The same you see in the code above. You may instead pass you own speed value.

This way these players won't be block anymore.
__________________

Last edited by Arkshine; 10-03-2010 at 10:17.
Arkshine is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 10-03-2010 , 10:35   Re: Module: Orpheu2.3a
Reply With Quote #582

Thank you! I will try this later and will come with an edit.

EDIT: Works perfect!
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!


Last edited by LaineN; 10-03-2010 at 14:28.
LaineN is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-04-2010 , 17:58   Re: Module: Orpheu2.3a
Reply With Quote #583

Can I get a signature for:
Code:
void PM_PreventMegaBunnyJumping( void )
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-04-2010 , 18:05   Re: Module: Orpheu2.3a
Reply With Quote #584

Forget, this function is "integrated" in PM_Jump(). You can't hook it. If the purpose is to disable it, you would need to do a memory patch to replace 1.2 by 0.
__________________

Last edited by Arkshine; 10-04-2010 at 18:07.
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-04-2010 , 20:36   Re: Module: Orpheu2.3a
Reply With Quote #585

Quote:
Originally Posted by Arkshine View Post
Forget, this function is "integrated" in PM_Jump(). You can't hook it. If the purpose is to disable it, you would need to do a memory patch to replace 1.2 by 0.
Okay, then could I get a memory file so I could patch it to 0?
Where I could do something like:
Code:
public plugin_precache( ) {     OrpheuMemorySet( "BUNNYJUMP_MAX_SPEED_FACTOR", 0, 0.0 ); }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-04-2010 , 21:52   Re: Module: Orpheu2.3a
Reply With Quote #586

If I remember 1.2 must be unique in PM_Jump, so, getting the function address of PM_Jump, then using as start address with OrpheuReplaceAtAddress( address, "blabla", 1, 1.2, 0 ); something like should work.
__________________
Arkshine is offline
Kiske
Veteran Member
Join Date: May 2009
Old 10-05-2010 , 08:29   Re: Module: Orpheu2.3a
Reply With Quote #587

Excuse my english.
With orpheu is can change the text thath says VIP ?.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-05-2010 , 08:32   Re: Module: Orpheu2.3a
Reply With Quote #588

No.
__________________
Arkshine is offline
Kiske
Veteran Member
Join Date: May 2009
Old 10-05-2010 , 08:38   Re: Module: Orpheu2.3a
Reply With Quote #589

Quote:
Originally Posted by Arkshine View Post
No.
Thanks.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
matiaslp
Senior Member
Join Date: Apr 2007
Old 10-16-2010 , 15:24   Re: Module: Orpheu2.3a
Reply With Quote #590

Is it possible to set vip status un showscore even if it's terrorist?
matiaslp 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 04:36.


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