Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] v_ model body delay


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-04-2018 , 22:03   [ H3LP ] v_ model body delay
Reply With Quote #1

Hello, I'm trying to set a custom sub-model in player view model, more specifically in the knife v_ model. My code it's working, but with a little bug in deploy event. Aparently is there a delay, so if I deploy, only after few seconds the body is changed.

I can share my model if you need it.

Code:
#include <amxmodx> #include <reapi> #include <hamsandwich> #include <fakemeta> public plugin_init() {     register_plugin("Cloak Test", "1.0", "Crazy");     RegisterHam(Ham_Item_Deploy, "weapon_knife", "CKnife_Deploy"),         register_forward(FM_CanSkipPlayer, "CBasePlayer_CanSkip"); } public CBasePlayer_CanSkip(this) {     if (!is_user_alive(this))         return FMRES_IGNORED;     if (get_user_weapon(this) != CSW_KNIFE)         return FMRES_IGNORED;     forward_return(FMV_CELL, false);     return FMRES_OVERRIDE; } public CKnife_Deploy(this) {     set_entvar(this, var_body, 1); }
__________________









Last edited by CrazY.; 07-05-2018 at 10:54.
CrazY. 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 12:15.


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