[ H3LP ] Weapons events?
Hello, I have some doubts related to weapons events (ak47.sc, m3.sc, m4a1.sc, etc).
1. How to the code works with these event files? Because I've taken a look and the file is empty. 2. I can precache and emulate custom weapon events? 3. Why in amxmodx 1.8.3 the precache_event() output log error saying "This function doesn't exists"? |
Re: [ H3LP ] Weapons events?
Quote:
Also your "amxx version". |
Re: [ H3LP ] Weapons events?
Custom weapon events is useless
|
Re: [ H3LP ] Weapons events?
Code:
AMX Mod X 1.8.3-dev+5154 (http://www.amxmodx.org)
Spoiler
Spoiler
Code:
L 07/14/2018 - 11:21:16: [AMXX] Plugin "avp_shotgun.amxx" failed to load: Plugin uses an unknown function (name "precache_event") - check your modules.ini. |
Re: [ H3LP ] Weapons events?
Maybe related to this: https://github.com/alliedmodders/amxmodx/pull/490
Update to latest version. |
Re: [ H3LP ] Weapons events?
Anyway didn't work as an I expect. As an @ghosted said, custom events is useless.
|
Re: [ H3LP ] Weapons events?
As half life source code says client hooks its original events (pfnHookEvent) and after event is alerted by server, it calls event function which does such things like place decal, update crosshair, make smokepuff, emit weapon sound...
And half life source code is similar to CS one. Anyway my CSWM mod is bad? criticize it please. |
Re: [ H3LP ] Weapons events?
I'm getting problem with M3 event. I've removed client prediction to emit custom fire sounds. With reapi I can emulate fire bullets (same of half-life source code). It don't work (decals, smoke, etc) if I don't call playback event too, but when I do that, default fire sound of M3 is being emited even if the prediction is removed.
The code was tested with other weapons (p228 and ak47) and it's working fine. |
Re: [ H3LP ] Weapons events?
Quote:
|
Re: [ H3LP ] Weapons events?
Yes, that's exactly what I said. I can emulate original "bullet effects" but with custom fire sounds.
|
All times are GMT -4. The time now is 00:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.