安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






Seems to be the case for HL2 weapons.
Try creating a new multiplayer game instead of singleplayer. In singleplayer, the CLIENT global variable always returns false and the PostDrawOpaqueRenderables hook is never called. I was having the same issue in my tests.
try:
{
"class": {
"drop": 0.01,
"speed": 100.0
},
"comment": "this is an example. class is the class name of the weapon entity. speed and drop are measured in meters/second",
"astw2_gow_lancer_locust": {
"drop": 0.01,
"speed": 100.0
}
}
"class": {
"drop": 0.01,
"speed": 100.0
},
"comment": "this is an example. 'class' is the class name of the weapon entity. 'speed' and 'drop' are measured in meters/second"
"astw2_gow_lancer_locust": {
"drop" : 0.01,
"speed": 100.0
}
}
I done scripting with other engines before, how should this be formatted? I want to add all my weapons to this.
and doesn't have any unnecessary commas. JSON isn't very forgiving. An extra comma at the end of the table will cause it to fail and return nil.
I did some testing to recreate this issue.
The error you are experiencing is caused by improper JSON formatting. Make sure you modify the JSON file correctly.
The variable 'tbl' is nil only because util.JSONToTable failed and returned nil
1. ReadCFG - lua/autorun/projectile_bullets.lua:33
2. v - lua/autorun/projectile_bullets.lua:62
3. unknown - lua/includes/modules/hook.lua:96
4. FireBullets - [C]:-1
5. ShootBullets - lua/weapons/astw2_base/attacks.lua:189
6. unknown - lua/weapons/astw2_base/attacks.lua:66
I'm plan on adding tracers tonight though.
@aebaadcode Yes, NPC's also shoot projectile bullets
You may have to change your ConVars for a more realistic effect
I recommend setting speed to 700, and drop to 1(AK-47 muzzle velocity)
fixed