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

[Question] How to get the ID of thrown nade in HL1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Realbout
Junior Member
Join Date: Jun 2007
Location: Korea
Old 05-06-2014 , 02:16   [Question] How to get the ID of thrown nade in HL1
Reply With Quote #1

Hello, people. I'm new here
I don't know about Pawn scripting very much, so please understand if this isn't very much of what to be asked.

I tried to fix the code of 'Glow All In One' by Zenith77,
(Link here : https://forums.alliedmods.net/showth...71724?p=171724)

To make it work properly in Sven Co-op.

I tried this plugin in Sven Co-op and checked that glowing and streaming work well, but nade glowing just doesn't work.

So I opened up the code, and looked up these two:

Code:
 register_event("SendAudio","eventGrenade","bc","2=%!MRAD_FIREINHOLE")
and

Code:
public eventGrenade(id) {
 
 if( g_GlowNadeColor[id] != GLOW_NULL )
 {
  set_task(0.1, "makeNadeGlow", id ) 
 }
  
}
 
 
public makeNadeGlow(id) {
 
 new grenade
 grenade = get_grenade(id)
 
 if( grenade ) {
  set_rendering(grenade, kRenderFxGlowShell, g_GlowNadeCustomColor[id][0], 
   g_GlowNadeCustomColor[id][1], g_GlowNadeCustomColor[id][2],
   kRenderNormal, 150 )
   }
 
}
I don't really get all of what these things are saying, but it pretty looks like Half Life(or Sven Co-op) doesn't understand the registered event above.

I searched through the forum for about 20 minutes and just couldn't find the answer.

The question is : How can I make 'Half Life' detect players' grenade and make it glow?

Thank you for reading this.

Last edited by Realbout; 05-06-2014 at 05:17. Reason: little error
Realbout is offline
Old 05-06-2014, 03:31
swapped
This message has been deleted by swapped. Reason: i dont read properly first post, sorry
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-06-2014 , 03:53   Re: [Question] How to get the ID of thrown nade in HL1
Reply With Quote #2

swapped, where is glow ?
__________________

Last edited by Bos93; 05-06-2014 at 03:55.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-06-2014 , 04:06   Re: [Question] How to get the ID of thrown nade in HL1
Reply With Quote #3

gren_throw works only in CS/CZ not in HL. You probably need to hook FM_SetModel
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 05-06-2014 , 04:23   Re: [Question] How to get the ID of thrown nade in HL1
Reply With Quote #4

Frostnades.
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
Old 05-06-2014, 05:15
Realbout
This message has been deleted by Realbout. Reason: to rewrite
Realbout
Junior Member
Join Date: Jun 2007
Location: Korea
Old 05-06-2014 , 05:16   Re: [Question] How to get the ID of thrown nade in HL1
Reply With Quote #5

Quote:
Originally Posted by Shooting King View Post
Thanks a lot, everyone. Looks like I got the idea.

Still I'm too lazy to make a use of that

Anyways, thank you very much.
Realbout 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 10:47.


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