Raised This Month: $ Target: $400
 0% 

Huge of problem around me :X


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 10-04-2009 , 09:00   Huge of problem around me :X
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN    "Heart Shot"
#define AUTHOR    "OT"
#define VERSION    "1.0"

#define BONE_HEART        6

new pcv_multi

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("heart_shot_vs"VERSION, (FCVAR_SERVER FCVAR_SPONLY))
    
    
pcv_multi register_cvar("heart_shot_multi""2.0")
    
    
RegisterHam(Ham_TraceAttack"player""fw_traceattack")
}

public 
fw_traceattack(victimattackerFloat:damageFloat:direction[3], ptrbits)
{
    new 
Float:origin[3], Float:end[3]
    
    
engfunc(EngFunc_GetBonePositionvictimBONE_HEARToriginend)
    
get_tr2(ptrTR_vecEndPosend)
    
    if (
get_distance_f(originend) < 3.0)
    {
        
SetHamParamFloat(3damage get_pcvar_float(pcv_multi))
        return 
HAM_HANDLED
    
}
    
    return 
HAM_IGNORED

[Questions] {a lot why}
------------------------------
1 | #define BONE_HEART 6 , what is the point of other bone?
2 | fw_traceattack(victim, attacker, Float:damage, Float:direction[3], ptr, bits , victim is what mean? what is direction[3]? 3 mean what? bit and ptr also what mean .. .
3 | Floatrigin[3], Float:end[3] , origin[3] is what? , end[3] is what?
4 | get_tr2(ptr, TR_vecEndPos, end , this i at function found but cant understand.
5 | (get_distance_f(origin, end) < 3.0) , why get_distance need F?
6 | return HAM_HANDLED is what?
7 | return HAM_IGNORED is what?
-------------------------------------------------
Sorry wasting all guy's time to answer my foolish questions.
---Code from Heart Shot plugin by OT
__________________
Nothing possible when you are not hardworking
Xevious is offline
Send a message via MSN to Xevious
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-04-2009 , 09:14   Re: Huge of problem around me :X
Reply With Quote #2

1. Search
3. Variables -_-
4. End pos of traceline
5. float
6. return
7. return
__________________
xPaw is offline
Xevious
Senior Member
Join Date: Sep 2009
Location: Computer Chair
Old 10-04-2009 , 09:19   Re: Huge of problem around me :X
Reply With Quote #3

Hehe .....i found it .

but next time , please write clearly if you want to teach yup.
__________________
Nothing possible when you are not hardworking
Xevious is offline
Send a message via MSN to Xevious
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 22:40.


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