Raised This Month: $95 Target: $400
 23% 

Impulse 101 Blocker for SC 4.0b1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Sven Coop        Category:   Gameplay        Approver:   Hawk552 (427)
AdamR
Senior Member
Join Date: Dec 2006
Location: Cardiff, South Wales
Old 01-13-2009 , 06:56   Impulse 101 Blocker for SC 4.0b1
Reply With Quote #1

This plugin will block players using the impulse 101 command while cheat mode (sv_cheats 1) is off.

Currently, impulse 101 wrongly works on Sven Co-op 4 (beta 1) regardless of cheat mode being on or off, leading to map exploits.

Administrators will be notified when players attempt to use impulse 101 while cheat mode is disabled.
Attached Files
File Type: sma Get Plugin or Get Source (block_impulse101.sma - 1585 views - 2.6 KB)
__________________
Thanks,

Adam Reece - Sven Co-op team.

Last edited by AdamR; 01-13-2009 at 14:02.
AdamR is offline
Send a message via Skype™ to AdamR
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 01-13-2009 , 10:19   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #2

nice1 adam
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-13-2009 , 13:00   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #3

You should pcvar (use get_cvar_pointer to retrieve sv_cheats pointer).
__________________
- tired and retired -
ConnorMcLeod is offline
AdamR
Senior Member
Join Date: Dec 2006
Location: Cardiff, South Wales
Old 01-13-2009 , 13:51   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #4

What's the difference?
__________________
Thanks,

Adam Reece - Sven Co-op team.
AdamR is offline
Send a message via Skype™ to AdamR
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-13-2009 , 13:54   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #5

Quote:
dozen times faster
__________________
- tired and retired -
ConnorMcLeod is offline
AdamR
Senior Member
Join Date: Dec 2006
Location: Cardiff, South Wales
Old 01-13-2009 , 13:56   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #6

Really... I'll look into this, thanks.

Edit: Plug-in updated on first post. Better?
__________________
Thanks,

Adam Reece - Sven Co-op team.

Last edited by AdamR; 01-13-2009 at 14:02.
AdamR is offline
Send a message via Skype™ to AdamR
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-13-2009 , 14:07   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #7

Quote:
Originally Posted by AdamR View Post
Better?
For sure

http://wiki.alliedmods.net/Optimizin...#Cvar_Pointers
http://forums.alliedmods.net/showpos...1&postcount=15
__________________
- tired and retired -

Last edited by ConnorMcLeod; 01-13-2009 at 14:09.
ConnorMcLeod is offline
AdamR
Senior Member
Join Date: Dec 2006
Location: Cardiff, South Wales
Old 01-13-2009 , 14:11   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #8

Thanks, had no idea about PCVAR's. I can see how these could be very useful actually, when you only need to get it once but read the value many times.
__________________
Thanks,

Adam Reece - Sven Co-op team.
AdamR is offline
Send a message via Skype™ to AdamR
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-13-2009 , 14:55   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #9

It doesn't matter is it easier for you or not. It's so much faster, and that's why it's on the rules as well.
SnoW is offline
Send a message via MSN to SnoW
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-05-2009 , 23:01   Re: Impulse 101 Blocker for SC 4.0b1
Reply With Quote #10

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 14:21.


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