playboi
|
分享:
▼
x0
|
[插件] (原创)[ZP4.2新手手册]修改幸存者武器
1. 先开启zombie_plague.sma
------------------------------------------------------------------------------------------------------
2. 搜寻: new const model_vm249_survivor[]
会找到以下的内容 (1)把它改成你要的武器 (2)把它改成你要的武器模组 new const model_vm249_survivor[] = { "models/v_m249.mdl" }
范例:(当我想改成G3SG1时)
new const model_vg3sg1_survivor[] = { "models/v_g3sg1.mdl" }
------------------------------------------------------------------------------------------------------
3. 搜寻: engfunc(EngFunc_PrecacheModel, model_vm249_survivor)
会找到以下的内容 (1)把它改成你刚刚要的武器 engfunc(EngFunc_PrecacheModel, model_vm249_survivor)
范例:(当我想改成G3SG1时) engfunc(EngFunc_PrecacheModel, model_vg3sg1_survivor)
------------------------------------------------------------------------------------------------------
4. 搜寻: cvar_survweapon = register_cvar("zp_surv_weapon", "weapon_m249")
会找到以下的内容 (1)把它改成你刚刚要的武器 cvar_survweapon = register_cvar("zp_surv_weapon", "weapon_m249")
范例:(当我想改成G3SG1时)
cvar_survweapon = register_cvar("zp_surv_weapon", "weapon_g3sg1")
------------------------------------------------------------------------------------------------------ 5.[PS:这个步骤可以跳过,这只是方便辨识] 搜寻: // Survivor should stick with M249
会找到以下的内容 (1)把它改成你刚刚要的武器 // Survivor should stick with M249
范例:(当我想改成G3SG1时)
// Survivor should stick with G3SG1
------------------------------------------------------------------------------------------------------ 6. 搜寻: case CSW_M249: // Survivor's M249
会找到以下的内容 (1)把它改成你刚刚要的武器(2)把它改成你刚刚要的武器[这个2.不一定要改] case CSW_M249: // Survivor's M249 { if (g_survivor[id]) (3)把它改成你刚刚要的武器 set_pev(id, pev_viewmodel2, model_vm249_survivor)
范例:(当我想改成G3SG1时)
case CSW_G3SG1: // Survivor's G3SG1 { if (g_survivor[id]) set_pev(id, pev_viewmodel2, model_vg3sg1_survivor)
------------------------------------------------------------------------------------------------------ 7. 接着储存(完成)
------------------------------------------------------------------------------------------------------
以上内容是本人原创的~~
若以上内容有问题~~
请回覆跟我讲~~
若有错误~~
请回覆跟我讲~~
本人第一次发这种文章~~
谢谢~~
[ 此文章被shxs101tw在2010-04-11 14:37重新编辑 ]
|