Ayuto / EventScripts-Emulator

A Source.Python plugin that is able to run EventScripts addons.
16 stars 9 forks source link

Late precache error when using es_fire #60

Open NosferatuJoe opened 3 years ago

NosferatuJoe commented 3 years ago

Whenever I'm using smokestacks & es_fire commands which includes a .vmt, I get a late precache at map start. The fire.vmt in this case has been added to the download & precache table using a sourcemod plugin.

The .vmt's work fine when using "es est_effect", this only occurs when using the es_fire command.

Code used:

es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
    es est_effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 80 300 4.5 128 10 0 128 0 255 255 20
    es_xmath wcs_smokestack_counter + 1
    es_give event_var(userid) env_smokestack
    es_format ss_name "my_ss_%1%2" event_var(userid) server_var(wcs_smokestack_counter)
    es_entitysetvalue server_var(eventscripts_lastgive) "targetname" server_var(ss_name)
    es_fire event_var(userid) server_var(ss_name) addoutput "basespread 15"
    es_fire event_var(userid) server_var(ss_name) addoutput "spreadspeed 100"
    es_fire event_var(userid) server_var(ss_name) addoutput "speed 5"
    es_fire event_var(userid) server_var(ss_name) addoutput "rate 200"
    es_fire event_var(userid) server_var(ss_name) addoutput "startsize 15"
    es_fire event_var(userid) server_var(ss_name) addoutput "endsize 25"
    es_fire event_var(userid) server_var(ss_name) addoutput "twist 15"
    es_fire event_var(userid) server_var(ss_name) addoutput "jetlength 900"
    es_fire event_var(userid) server_var(ss_name) addoutput "angles 90 90 90"
    es_fire event_var(userid) server_var(ss_name) addoutput "rendercolor 128 0 255"
    es_fire event_var(userid) server_var(ss_name) addoutput "SmokeMaterial particle/fire.vmt"
    es_fire event_var(userid) server_var(ss_name) turnon
    es_delayed 4.5 es_fire event_var(userid) server_var(ss_name) kill

Console error: Mar 20 20:24:36: Late precache of particle/fire.vmt