Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Late precache error when using es_fire #60

Open
NosferatuJoe opened this issue Mar 20, 2021 · 0 comments
Open

Late precache error when using es_fire #60

NosferatuJoe opened this issue Mar 20, 2021 · 0 comments

Comments

@NosferatuJoe
Copy link
Contributor

NosferatuJoe commented Mar 20, 2021

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

@NosferatuJoe NosferatuJoe changed the title Late Precache when using es_fire Late precache error when using es_fire Mar 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant