This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Alternative SetHamParamInteger(3, 2) Ham_Killed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
artist
Member
Join Date: Nov 2013
Old 02-02-2015 , 10:57   Alternative SetHamParamInteger(3, 2) Ham_Killed
Reply With Quote #1

Why can not I?
Code:
#include <amxmodx> #include <hamsandwich> //#define DMG_GIB_CORPSE (DMG_CRUSH | DMG_FALL | DMG_BLAST | DMG_SONIC | DMG_CLUB) #define DMG_GIB_CORPSE ((1<<0)|(1<<5)|(1<<6)|(1<<7)|(1<<9)) public plugin_init() {     register_clcmd("say y", "functions") } public functions(id) {     //ExecuteHam(Ham_CS_Item_CanDrop, id)     //ExecuteHam(63, id)     ExecuteHamB(Ham_TakeDamage, id, 0, 0, 200.0, DMG_GIB_CORPSE) // 737 }
artist is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 02-02-2015 , 17:35   Re: Alternative SetHamParamInteger(3, 2) Ham_Killed
Reply With Quote #2

if you want gib, call Ham_TakeDamage with DMG_ALWAYSGIB as a damage mask

like

DMG_BULLET | DMG_ALWAYSGIB or even DMG_FALL | DMG_ALWAYSGIB
__________________


Last edited by NiHiLaNTh; 02-02-2015 at 17:35.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 02-02-2015 , 19:53   Re: Alternative SetHamParamInteger(3, 2) Ham_Killed
Reply With Quote #3

something like this ?
Code:
#include <amxmodx> #include <hamsandwich> #include <fakemeta> //#define DMG_GIB_CORPSE (DMG_CRUSH | DMG_FALL | DMG_BLAST | DMG_SONIC | DMG_CLUB) #define DMG_GIB_CORPSE ((1<<0)|(1<<5)|(1<<6)|(1<<7)|(1<<9)) public plugin_init() {     register_clcmd("say y", "functions")     register_forward(FM_Touch, "functions") } public functions(iEntity,id) {       if (!(1 <= id <= get_maxplayers() ) || !pev_valid(iEntity))         return FMRES_IGNORED             ExecuteHamB(Ham_TakeDamage, iEntity, 0, 0, 200.0, DMG_GIB_CORPSE) // 737         return FMRES_IGNORED }
Freezo Begin is offline
artist
Member
Join Date: Nov 2013
Old 02-03-2015 , 04:37   Re: Alternative SetHamParamInteger(3, 2) Ham_Killed
Reply With Quote #4

Quote:
Originally Posted by NiHiLaNTh View Post
if you want gib, call Ham_TakeDamage with DMG_ALWAYSGIB as a damage mask

like

DMG_BULLET | DMG_ALWAYSGIB or even DMG_FALL | DMG_ALWAYSGIB
Thank you ))
artist 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 14:12.


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