Raised This Month: $ Target: $400
 0% 

Treat Famas as shield


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
darktemplar
Member
Join Date: Sep 2009
Old 03-13-2013 , 12:40   Treat Famas as shield
Reply With Quote #1

Hi everyone ,
How can I make CS Engine treat the Famas as Shield ?

I tried :

const SHIELD_DRAW = (1<<16)
const WEAPONSTATE_SHIELD_DRAW = (1<<5)

new iEnt = get_pdata_cbase(id, m_pActiveItem, 5)

set_pdata_bool(id, m_bHasShield, true, 5)
set_pdata_bool(id, m_boolsUserPrefsAndShield, SHIELD_DRAW, 5)
set_pdata_bool(id, m_bUsesShield, true, 5)
set_pdata_int(iEnt, m_fWeaponState, WEAPONSTATE_SHIELD_DRAW, 4)

I do this code to a player, when he die, he drop a shield, but he still take damage from guns
How can I do to treat famas as shield ?
darktemplar 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 21:38.


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