AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   No Shield (https://forums.alliedmods.net/showthread.php?t=139026)

ConnorMcLeod 09-25-2010 14:04

No Shield
 
6 Attachment(s)
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



xjose93 09-25-2010 14:06

Re: No Shield
 
Nice job :D that teachs me somethings ^^.

fezh 09-25-2010 14:36

Re: No Shield
 
Nice one Connor. Just wondering, wouldn't be better unregistering FM_PrecacheModel ?

ConnorMcLeod 09-25-2010 14:36

Re: No Shield
 
I made that one because shield is often restricted + gained files is consequent.

@fezh
It's called each time a weapon is spawned.

fezh 09-25-2010 14:37

Re: No Shield
 
Quote:

Originally Posted by ConnorMcLeod (Post 1308507)
@fezh
It's called each time a weapon is spawned.

OK, my bad.

senecas 09-28-2010 06:40

Re: No Shield
 
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?

ConnorMcLeod 09-28-2010 11:48

Re: No Shield
 
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.

Arkshine 11-02-2010 12:50

Re: No Shield
 
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.

Rossonero 11-02-2010 15:11

Re: No Shield
 
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!

Arkshine 11-02-2010 15:17

Re: No Shield
 
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. ;)


All times are GMT -4. The time now is 19:22.

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