Raised This Month: $ Target: $400
 0% 

[CS:GO] Change players knife without creating a new entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 07-25-2015 , 07:58   Re: [CS:GO] Change players knife without creating a new entity
Reply With Quote #1

You may want to change this to a PreHook, Otherwise Falchion and Butterfly will have bugged animations.

It took me a while to figure out that it was just a simple change to prehook.

Edit: (Its really as simple as this and you will get perfect results everytime without glitches)

PHP Code:
public OnWeaponEquip_Pre(iClientiWeapon)
{
    
RemovePlayerItem(iClientiWeapon);
    
SetEntProp(iWeaponProp_Send"m_iItemDefinitionIndex"g_iItemDefinitionIndexes[A_FANCY_INDEX]);


Last edited by SM9; 07-25-2015 at 08:06.
SM9 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 18:36.


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