Raised This Month: $198 Target: $400
 49% 

No Shield


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   Arkshine (90)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-25-2010 , 14:04   No Shield
Reply With Quote #1

No Shield




.: Description :.


The plugin restricts shield, and also prevents 20 models files from being precached.
This plugin was not requested by Arkshine.



.: Notes :.


If you want to enable shied in game, don't use this plugin, use default amxx restriction plugin.



.: ChangeLog :.

Code:
04 dec 2012 v0.2.1
- Prevent plugin from being paused

14 apr 2011 v0.2.0
- Hook directly menuselect command because amxx menu indexes system is not good, it should prevent all crashes.

13 apr 2011 v0.1.0
- Auto disabling if a game_player_equip entity gives a shield to players

28 sep 2010 v0.0.3
- Prevent 2 more models from being precached

25 sep 2010 v0.0.2 
- Public release

Attached Files
File Type: sma Get Plugin or Get Source (noshield.sma - 3515 views - 4.0 KB)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 12-04-2012 at 12:26.
ConnorMcLeod is offline
xjose93
Member
Join Date: Apr 2008
Old 09-25-2010 , 14:06   Re: No Shield
Reply With Quote #2

Nice job that teachs me somethings ^^.
xjose93 is offline
Old 09-25-2010, 14:31
Arkshine
This message has been deleted by ConnorMcLeod. Reason: not related to the plugin
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-25-2010 , 14:36   Re: No Shield
Reply With Quote #3

Nice one Connor. Just wondering, wouldn't be better unregistering FM_PrecacheModel ?
__________________
"There is no knowledge, that is not power"
fezh is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-25-2010 , 14:36   Re: No Shield
Reply With Quote #4

I made that one because shield is often restricted + gained files is consequent.

@fezh
It's called each time a weapon is spawned.
__________________
- tired and retired -
ConnorMcLeod is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-25-2010 , 14:37   Re: No Shield
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
@fezh
It's called each time a weapon is spawned.
OK, my bad.
__________________
"There is no knowledge, that is not power"
fezh is offline
Old 09-25-2010, 15:04
Arkshine
This message has been deleted by ConnorMcLeod. Reason: not related to the plugin
senecas
Senior Member
Join Date: Jun 2006
Old 09-28-2010 , 06:40   Re: No Shield
Reply With Quote #6

add
models/v_shield.mdl
models/p_shield.mdl
models/w_shield.mdl
and
check armoury_entity in map.

Or
need to block touch shield entity.

Q) What does "forward_return(FMV_CELL, 0)" mean ?
Do we need it?

Last edited by senecas; 09-28-2010 at 06:44.
senecas is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-28-2010 , 11:48   Re: No Shield
Reply With Quote #7

Added :
models/p_shield.mdl
models/w_shield.mdl

models/v_shield_r.mdl doesn't seem to be precached

armoury_entity can't be a shield :
Code:
@PointClass base(Angles) iconsprite("sprites/CS/Armoury.spr") size(-16 -16 0, 16 16 16) = armoury_entity : "Items in the armoury" 
[
	item(choices)  : "Item" : "" = 
	[
		"": "weapon_mp5navy"
		1: "weapon_tmp"
		2: "weapon_p90"
		3: "weapon_mac10"
		4: "weapon_ak47"
		5: "weapon_sg552"
		6: "weapon_m4a1"
		7: "weapon_aug"
		8: "weapon_scout"
		9: "weapon_g3sg1"
		10: "weapon_awp"
		11: "weapon_m3"
		12: "weapon_xm1014"
		13: "weapon_m249"
		14: "weapon_flashbang"
		15: "weapon_hegrenade"
		16: "item_kevlar"
		17: "item_assaultsuit"
		18: "weapon_smokegrenade"
	]
//*
//*note: count always resets to only one item after first round
//*
	count(integer) : "Count" : 1
]
A) When you precache a file, an index is returned, i'm not sure it's needed to return 0 but it doesn't hurt to do so.
__________________
- tired and retired -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2010 , 12:50   Re: No Shield
Reply With Quote #8

The 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.
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine is offline
Old 11-02-2010, 12:56
Arkshine
This message has been deleted by Arkshine. Reason: forum lag
Rossonero
Senior Member
Join Date: Mar 2009
Location: Location
Old 11-02-2010 , 15:11   Re: No Shield
Reply With Quote #9

kick ass!
thanks man, I hate the tactical shield, restricted 24/7... people walking around with a door on their backs, very lame

yes, could be useful for other weapons, for example I also restrict the sgg55 or however it is called, that ugly semi-automatic sniper, hate it so, such a nooby weapon... this would also help me get rid of the restmenu.amxx plugin

great job Connor once again keep it up!
__________________
signature
Rossonero is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2010 , 15:17   Re: No Shield
Reply With Quote #10

Quote:
yes, could be useful for other weapons, for example I also restrict the sgg55 or however it is called, that ugly semi-automatic sniper, hate it so, such a nooby weapon... this would also help me get rid of the restmenu.amxx plugin
You will see that in my plugin Precache Control. Most of main things are done. ;)
__________________
Working on : CS Weapon Mod (72%) , MonsterAI (PAUSED),

Arkshine is offline
Old 11-02-2010, 20:36
Rossonero
This message has been deleted by ConnorMcLeod. Reason: not related to the plugin
Old 11-02-2010, 21:42
ConnorMcLeod
This message has been deleted by ConnorMcLeod. Reason: not related to the plugin
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 08:52.


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