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

Solved Glow weaponbox after picking up


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-16-2018 , 15:18   Glow weaponbox after picking up
Reply With Quote #1

I have weaponboxes that are glowing but after I pick them up, and drop them the glow is gone. Do I use Ham_Item_Drop and then glow them again?

Another question: We have a weaponbox in the ground, I pick it up, it becomes weapon_*, if I drop it, does it become weaponbox again or just stays as a weapon_* ?

Thanks to anyone who helps.
__________________

Last edited by edon1337; 07-16-2018 at 19:43.
edon1337 is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-16-2018 , 15:44   Re: Glow weaponbox after picking up
Reply With Quote #2

About first question try that ham forward otherwise use FM_SetModel but that Item_Drop says it is calling when player dies. (Checked in ReGameDLL & Drop function removes that item after a while).
About second, when you pick up weaponbox, it dissapears and you getting packed weapon entity & after drop this entity is re-packed into new weaponbox entity before someone picks it up. WeaponBoxEntity != PickedWeaponFromWeaponBoxEntity
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 07-16-2018 at 17:29.
Ghosted is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-16-2018 , 19:43   Re: Glow weaponbox after picking up
Reply With Quote #3

Quote:
Originally Posted by Ghosted View Post
About first question try that ham forward otherwise use FM_SetModel but that Item_Drop says it is calling when player dies. (Checked in ReGameDLL & Drop function removes that item after a while).
About second, when you pick up weaponbox, it dissapears and you getting packed weapon entity & after drop this entity is re-packed into new weaponbox entity before someone picks it up. WeaponBoxEntity != PickedWeaponFromWeaponBoxEntity
FM_SetModel worked, thanks.
I just wanted to know that after you drop a weapon it becomes a weaponbox, I'm aware that a weapon_* entity and weaponbox aren't the same. Thanks
__________________
edon1337 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 19:54.


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