武器の登録
武器の登録は三つの場所に登録することになります。これ、一つでも漏れると
エラーになるのでよろしく。
| gamedata\config\weapons\weapons.ltx |
| gamedata\config\mp\mp_ranks.ltx |
| gamedata\config\text\eng\string_table_enc_weapons.xml |
どれもこれもくせもの。一番簡単なweapons.ltxから。
| #include "w_gauss.ltx" |
| #include "w_groza.ltx" |
| #include "w_hpsa.ltx" |
| #include "w_pm.ltx" |
| #include "w_pb.ltx" |
| #include "w_walther.ltx" |
ここで、PMC(PMカスタム)を作ったので追記
| #include "w_gauss.ltx" |
| #include "w_groza.ltx" |
| #include "w_hpsa.ltx" |
| #include "w_pm.ltx" |
| #include "w_pmc.ltx" |
| #include "w_pb.ltx" |
| #include "w_walther.ltx" |
AK74カスタムも作ったので追記
| #include "w_ak74.ltx" |
| #include "w_ak74c.ltx" |
| #include "w_ak74u.ltx" |
| #include "w_fn2000.ltx" |
| #include "w_rpg7.ltx" |
| #include "w_knife.ltx" |
| #include "w_bolt.ltx" |
も修正しておく。これはネット関連で使うらしいんですが。自分が死んだときに
持っている武器をドロップする仕様。でもこれを直さないと、キャラが死んだらゲームが落ちます。
| ;----------------- new items ------------------------- |
| available_items = mp_wpn_wincheaster1300, |
| mp_wpn_lr300,mp_wpn_vintorez,mp_wpn_abakan,mp_scientific_outfit, wpn_fort_m1, |
| wpn_ak74u_m1, wpn_walther_m1, hunters_toz, wpn_beretta_m1, |
| wpn_hpsa, wpn_pmc, wpn_ak74c |
どこでもいいので、武器の後ろにPMカスタムとAK74カスタムをカンマ、スペースでねじ込んだ。
せっかくカスタム銃を作ったので名前をつける。
| gamedata\config\text\eng\string_table_enc_weapons.xml |
| <string id="wpn-pm"> |
| <text>PMm</text> |
| </string> |
| <string id="wpn-pmc"> |
| <text>PM Custom</text> |
| </string> |
| <string id="wpn-ak74"> |
| <text>Akm 74/2</text> |
| </string> |
| <string id="wpn-ak74c"> |
| <text>Ak 74 Custom</text> |
| </string> |
最終更新:2013年10月30日 20:42