PDA

View Full Version : OnGiveNamedItem: Blocking Action Slot items doesn't work


Powerlord
04-16-2014, 10:37
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).

asherkin
04-16-2014, 15:57
Action slot items' actions are client-side, the client just tells the server what to play via a command.

Powerlord
04-16-2014, 16:49
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 (http://www.disc-ff.com/viewtopic.php?f=58&t=4504) that the models for Canteens and Spellbooks are showing up even when they're blocked (https://github.com/powerlord/sourcemod-prophunt/blob/7078d5315015c7f6429563bbb8610ffdde561b31/addons/sourcemod/scripting/prophunt.sp#L3628) (all items for the RED team are blocked in this particular mod by default), although I haven't personally experienced this.

Mitchell
04-21-2014, 21:25
Well, the other problem is that I've been hearing reports (http://www.disc-ff.com/viewtopic.php?f=58&t=4504) that the models for Canteens and Spellbooks are showing up even when they're blocked (https://github.com/powerlord/sourcemod-prophunt/blob/7078d5315015c7f6429563bbb8610ffdde561b31/addons/sourcemod/scripting/prophunt.sp#L3628) (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.

friagram
04-23-2014, 03:40
Well, the other problem is that I've been hearing reports (http://www.disc-ff.com/viewtopic.php?f=58&t=4504) that the models for Canteens and Spellbooks are showing up even when they're blocked (https://github.com/powerlord/sourcemod-prophunt/blob/7078d5315015c7f6429563bbb8610ffdde561b31/addons/sourcemod/scripting/prophunt.sp#L3628) (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.