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

OnGiveNamedItem: Blocking Action Slot items doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-16-2014 , 10:37   OnGiveNamedItem: Blocking Action Slot items doesn't work
Reply With Quote #1

I don't recall if I reported this earlier or not, but blocking action slot items using by returning Plugin_Stop in TF2Items_OnGiveNamedItem doesn't seem to work.

The player can still use their action slot item as normal and items that have a model may or may not be visible (this is unclear to me).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-16-2014 , 15:57   Re: OnGiveNamedItem: Blocking Action Slot items doesn't work
Reply With Quote #2

Action slot items' actions are client-side, the client just tells the server what to play via a command.
__________________
asherkin is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-16-2014 , 16:49   Re: OnGiveNamedItem: Blocking Action Slot items doesn't work
Reply With Quote #3

Quote:
Originally Posted by asherkin View Post
Action slot items' actions are client-side, the client just tells the server what to play via a command.
Well, the other problem is that I've been hearing reports that the models for Canteens and Spellbooks are showing up even when they're blocked (all items for the RED team are blocked in this particular mod by default), although I haven't personally experienced this.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-16-2014 at 16:58.
Powerlord is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-21-2014 , 21:25   Re: OnGiveNamedItem: Blocking Action Slot items doesn't work
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
Well, the other problem is that I've been hearing reports that the models for Canteens and Spellbooks are showing up even when they're blocked (all items for the RED team are blocked in this particular mod by default), although I haven't personally experienced this.
you could possibly try to set the wearables invisible, see if that helps.
Mitchell is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 04-23-2014 , 03:40   Re: OnGiveNamedItem: Blocking Action Slot items doesn't work
Reply With Quote #5

Quote:
Originally Posted by Powerlord View Post
Well, the other problem is that I've been hearing reports that the models for Canteens and Spellbooks are showing up even when they're blocked (all items for the RED team are blocked in this particular mod by default), although I haven't personally experienced this.
They get removd if you block them in ogni.
The prblem you are talking about is people killling them instead of calling removewearable on the associated entity.

Botkillers on the ither hand seem to stay even if you use removewearable, though you can block them in ogni as well.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 04-23-2014 at 03:40.
friagram 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 06:29.


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