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

Impulse Grenade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-14-2018 , 04:21   Re: Impulse Grenade
Reply With Quote #5

1.
Quote:
Originally Posted by NiHiLaNTh View Post
Its 2018, why you still change viewmodels with CurWeapon event?
Fix this.

2.Don't use FM_Touch when you want to catch specific touches between entities, register_touch from engine or Ham_Touch should be better in this case because filtering is doing in the module.

3.
PHP Code:
#define SMOKE_ID            26 
Don't hardcode that, use precache_event with createsmoke.sc.

4.Use real offset names OFFSET_GRENADE - > m_usEvent

5.Don't duplicate code, create a private function for this:
PHP Code:
    new iColor[3], iCvar get_pcvar_num(g_pCvarExplosionColor)
    
iColor[0] = (iCvar 1000000)
    
iCvar %= 1000000
    iColor
[1] = (iCvar 1000)
    
iColor[2] = (iCvar 1000
6.I don't think you have to check both isGrenade and isAvaliableGrenade, isAvaliableGrenade should be enough.
__________________

Last edited by HamletEagle; 07-14-2018 at 04:21.
HamletEagle 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 00:52.


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