下面是引用 asd159753 于 2011-06-05 20:36 发表的 :
你说:那看起来还蛮像 特殊枪枝插件 用到的东西呢
对没错我之前看过龙牙刃配冰龙m4或是火箭筒之类的才有
普通像是无重力M4A1好像没有写到
.......
以下全都是插件载入的程序区段
RegisterHam(Ham_Item_AttachToPlayer, "weapon_m4a1", "Item_AttachToPlayer")
RegisterHam(Ham_Item_PostFrame, "weapon_m4a1", "Item_PostFrame")
↑我和他们不熟
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
↑伤害事件发生时的程序
RegisterHam(Ham_Item_PostFrame, "weapon_m4a1", "fw_Item_PostFrame", 1)
↑我不认识他
RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_m4a1", "fw_WeapSecAttack", 1)
↑武器第2次攻击时的程序
RegisterHam(Ham_TraceAttack, "player", "fw_TraceAttack")
↑攻击事件发生时的程序
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_m4a1", "fw_WeapPriAttack")
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_m4a1", "fw_WeapPriAttack_1", 1)
↑武器攻击时的程序
register_forward(FM_UpdateClientData, "fw_UpdateClientData_Post", 1)
↑不知用途无法解释
register_forward(FM_Touch, "fw_Touch")
↑物件发生碰撞时的程序
register_forward(FM_CmdStart, "fw_CmdStart")
↑按键盘时的侦测程序
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
↑回合开始后的侦测程序
register_forward(FM_ClientUserInfoChanged, "fw_ClientUserInfoChanged")
↑使用者资讯改变时时执行某段程序
register_event("HLTV", "event_RoundStart", "a", "1=0", "2=0")
↑回合开始的程序
register_event("CurWeapon","event_CurWeapon", "be", "1=1")
↑切换武器的程序
register_logevent("logevent_RoundStart",2, "1=Round_Start")
register_logevent("logevent_RoundEnd", 2, "1=Round_End")
↑回合开始和回合结束的程序
g_msgScreenShake = get_user_msgid("ScreenShake")
g_msgScreenFade = get_user_msgid("ScreenFade")
↑得到参数好改变萤幕画面
g_msgDeathMsg = get_user_msgid("DeathMsg")
↑得到死亡讯息
g_msgScoreAttrib = get_user_msgid("ScoreAttrib")
g_msgScoreInfo = get_user_msgid("ScoreInfo")
↑得到成绩资讯
g_msgSync = CreateHudSyncObj()
↑不知道用途无法解释
maxplayers = get_maxplayers()
↑找出全场的玩家数
-------------------------------------------------------------------------------------------------
RegisterHam ↑载入一个 hamsandwich(inc.档) 中的 forward
register_forward ↑载入一个 forward
register_event ↑载入事件
register_logevent ↑载入特殊事件
g_msgScreenShake ↑很单纯的变数
---------------------------------------------------------------------------------------------------
因为我也不知道教学区有没有类似的就顺便问
这样阿...
那请您去爬文吧...