Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 09:46.


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