Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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