Raised This Month: $32 Target: $400
 8% 

Entity output hook+modify


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-05-2014 , 07:08   Entity output hook+modify
Reply With Quote #1

Ciao,

is possible to hook entity output and modify it? Something like hook player dmg via sdkhooks and modify it before players gets that dmg.

EDIT: Seems that SM plugin can't modify entity output. So at least SM ext..

Last edited by KissLick; 04-05-2014 at 07:23.
KissLick is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 04-05-2014 , 07:40   Re: Entity output hook+modify
Reply With Quote #2

What are you actually trying to achieve?

You can hook entity output with SM plugins.
donrevan is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-05-2014 , 07:56   Re: Entity output hook+modify
Reply With Quote #3

I want to create new entity (pretty sure I need to use extension here, and I already have base of my fgd file), which I would place in map (in hammer, no plugin here) and that entity would fire some output.
I would hook that output and modify it with plugin/extension. And I would like to can modify all outputs, not just these of mine.

P.S.: Sorry for my poor english O:-) I hope you understand what I want.

Last edited by KissLick; 04-05-2014 at 07:57.
KissLick is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 04-05-2014 , 08:29   Re: Entity output hook+modify
Reply With Quote #4

You need to have good knowledge of C++/the HL2SDK to do this.
https://forums.alliedmods.net/showthread.php?t=236739
donrevan is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 04-05-2014 , 08:53   Re: Entity output hook+modify
Reply With Quote #5

Yop, I looked in that topic, but I am not sure about that modifying entity output.. I would like to know if is it possible a then start to make some code.
KissLick is offline
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 04-05-2014 , 11:42   Re: Entity output hook+modify
Reply With Quote #6

It should be no problem but I don't see why you even need it.
Why not create some stub entity like info_target, set some special classname to identify it and fire some outputs trough it? You don't even need a extension for that.
donrevan is offline
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 20:33.


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