Commit Graph

520 Commits

Author SHA1 Message Date
NathanX-S
88ebeb9a04 optimize: ManageSmoke is expensive.
stop rendering tire smoke beyond 6000 units or on an inactive vehicle.
2023-05-15 22:08:52 -04:00
Luna
bef0bd0010 call old SimfphysPopulateVehicles hook 2023-05-14 22:45:05 +02:00
Luna
2838092a3b increment version number 2023-05-13 08:13:22 +02:00
Luna
5279971fa8 https://github.com/Blu-x92/simfphys_base/issues/89 2023-05-13 08:06:46 +02:00
Blu-x92
548974bc60
Merge pull request #90 from wrefgtzweve/fix-simfiller-error
Return early on invalid self
2023-05-12 19:51:49 +02:00
Redox
d708bcb671
Spaces to tabs 2023-05-12 12:11:37 +02:00
Redox
dfb8f1a181
Return early on invalid self 2023-05-12 12:10:41 +02:00
Luna
aea27a6ca7 fixed broken & non-initialized vehicle not removing itself 2023-05-07 21:25:30 +02:00
Luna
8483fbb32b set "Base" category to be the main one 2023-05-07 20:44:46 +02:00
Luna
3df89248ec move simfphys tab to vehicles tab 2023-05-07 20:35:20 +02:00
Luna
4f9c44661f fixed wheel editor refusing to use airplane wheel model 2023-05-07 20:35:07 +02:00
Luna
68e8a81105 add lvs style version check 2023-05-07 20:19:56 +02:00
Luna
dbaf65da23 edit properties now admin only 2023-05-07 20:19:31 +02:00
Luna
e77fb4fb18 forced wheel spazz fix for stupid server owners 2023-05-07 20:18:52 +02:00
Luna
b1d1567b98 remove unused player damage system since this bug was fixed years ago 2023-05-07 20:18:14 +02:00
Luna
ad9e0cad85 change seatswitcher hud color to lvs style 2023-04-23 23:32:21 +02:00
Luna
41154b6021 fix player inside vehicle taking explosion damage when they shouldn't 2023-04-23 23:32:03 +02:00
Luna
8cb45a1f3f remove performance killer script 2023-04-23 23:31:24 +02:00
Luna
459e779bc3 add addon.json 2023-04-23 23:19:26 +02:00
Luna
a315c4de0e revert to non-lvs, include prewar pack, include sounds 2023-04-23 23:16:52 +02:00
Luna
43a8eac9d3 base fully functional on lvs 2023-04-19 20:52:33 +02:00
Luna
9872cea08f make use of lvs's AddDT functions 2023-04-19 20:52:14 +02:00
Luna
adcb27971d entity register test 2023-04-19 20:51:58 +02:00
Luna
e005509370 update lvs tab 2023-04-19 20:51:48 +02:00
Luna
5066f16f0c move all dupe related functions to sv_duping.lua 2023-04-19 20:51:33 +02:00
Luna
e75d956694 move all wiremod functions to sv_wiremod.lua 2023-04-19 20:51:23 +02:00
Luna
08b8a11bcb update include() script 2023-04-17 16:04:39 +02:00
Luna
9b5ea7f5a7 remove exitpoint script since lvs already comes with a better one 2023-04-17 16:04:26 +02:00
Luna
645063b912 move mousteer in its own lua file 2023-04-17 16:04:10 +02:00
Luna
76b1899710 remove seat switcher cuz we are using the lvs one now 2023-04-17 16:03:58 +02:00
Luna
1b086348ad replace string class check with a simple true/false bool check 2023-04-17 16:03:18 +02:00
Luna
29f98db23b remove retarded scar style IsVehicle hack 2023-04-17 16:02:57 +02:00
Luna
ee96d6bb26 remove dead include() 2023-04-17 16:02:44 +02:00
Luna
0cc9fdb07b remove damage system as lvs already comes with one 2023-04-17 16:02:31 +02:00
Luna
2b5b3b0920 standarize kmh/mph display so it matches lvs 2023-04-17 16:02:18 +02:00
Luna
18657a9830 remove retarded performance killer script 2023-04-17 16:01:58 +02:00
Luna
dcc938eea6 remove simfphys tab and move it to lvs tab 2023-04-17 16:01:45 +02:00
Luna
fa00c91a50 fix issue #80
https://github.com/Blu-x92/simfphys_base/issues/80
2023-01-02 12:21:51 +01:00
Luna
e0baac98d5 omg 2021-12-11 23:37:07 +01:00
Luna
7a3919554e Merge branch 'master' of https://github.com/Blu-x92/simfphys_base 2021-12-11 22:13:26 +01:00
Luna
b6f22365db remove unused fix 2021-12-11 22:13:05 +01:00
Luna
952e2bdd90
Merge pull request #66 from NotAKidOnSteam/master
Hook patches.
2021-12-06 02:17:39 +01:00
NotAKidoS
289e94d049 Implemented simfphysOnRepaired hook
The hook wasn't implemented this entire time... Added to repair tool, but it might be better to have the hook run from the vehicles code instead.
2021-12-03 14:27:12 -08:00
NotAKidoS
75ada67cda
Merge branch 'Blu-x92:master' into master 2021-12-01 15:09:00 -06:00
NotAKidoS
53defd094f patches to AirControl and OnTick hooks
AirControl hook now references entity that called it.
OnTick hook now has CurTime so the hook doesn't need to.
2021-12-01 15:08:01 -06:00
Luna
dd16a6ee17
Merge pull request #60 from lionbryce/master
self.Owner is deprecated, use self:GetOwner()
2021-08-03 22:54:29 +02:00
Luna
3469be91c1
Merge pull request #59 from EntranceJew/patch-1
Prevent headlight press timer from causing errors
2021-08-03 22:47:27 +02:00
bryce
d176514ab8 self.Owner is deprecated, use self:GetOwner()
self.Owner is a slower way of calling self:GetOwner() if you check the weapon.__index metatable
2021-07-24 19:46:44 -04:00
EntranceJew
97a1893528
Prevent headlight press timer from causing errors
Sometimes entering a vehicle with the +use button bound to F and the simfphys lights key bound to F raises a scripting error without an indication as to a cause.
This is probably not the only occasion where this occurs, but it is the most easily reproducible situation.

Tested against the latest workshop version, I found that inserting this on line 259 prevents raising an error on the first time entering a vehicle:
```md
if not ent.KeyPressedTime then
    print("got the bastard")
    print(ent)
    return false
end
```

However, the proposed change is a little more elegant.
2021-07-15 05:28:45 -05:00
Luna
6d7abaab64 fix crash
see https://github.com/Blu-x92/simfphys_base/issues/54
2021-05-24 10:08:10 +02:00