Can anyone give me an example, how to do this, because I couldn't get it to work, when i Spawn the model it gives me an error in console saying :
[code]Attempting to create unknown particle system 'particles/spore_floaties.pcf' [/code]
Here's the code in the model's QC that i'm trying :
[code]
$attachment 0 "ValveBiped.Bip01_R_Hand" 4 -4 0
$attachment "spore" "ValveBiped.cube3" 0 0 0
$keyvalues
{
particles
{
effect
{
name "spore_floaties.pcf"
attachment_type "follow_attachment"
attachment_point "spore"
}
}
}[/code]
This gives me that error
I have also tried this for animations :
[code]$sequence idle01 "Idle01" loop fps 30 activity ACT_VM_IDLE 1 { event AE_CL_CREATE_PARTICLE_EFFECT 1 "spore_f start_at_attachment spore" }[/code]
Gives me an error too..
How to make this work ?
Thanks :D
Source : [url]http://developer.valvesoftware.com/wiki/Particles_In_Animations[/url]
and
[url]http://developer.valvesoftware.com/wiki/Particles_On_Models[/url]
It wants the name of the particle effect, but you have only given the name of the pcf.
Open the game with -tools and then open that particle file and find the name of the particle effect you want.
Ah, well, I've found the name, it's "spore_floaties". Then I used this in the code, but, now, the console is spamming me with a lot of :
[code]
Error Vertex File for 'weapons/v_sporegrenade.mdl' checksum -1819107548 should be -1837236621
[/code]
:/
Anyway, thanks for trying to help me :D
[QUOTE=ferdam;16004241]Ah, well, I've found the name, it's "spore_floaties". Then I used this in the code, but, now, the console is spamming me with a lot of :
[code]
Error Vertex File for 'weapons/v_sporegrenade.mdl' checksum -1819107548 should be -1837236621
[/code]
:/
Anyway, thanks for trying to help me :D[/QUOTE]
That error means that the model has changed while the game is still running. Just restart it.
[QUOTE=HiddenMyst;16011997]That error means that the model has changed while the game is still running. Just restart it.[/QUOTE]
Oh, shit, I didn't know that ! I'll try compiling the model without the game running.
And yes, it was running while compiling.
I'll post here if i get any problem. :D
Thank you very much !
Yay, it worked. But all weapons are now with the particle...
I'm getting particles everywhere:
[img]http://img158.imageshack.us/img158/7451/of2outlands050001.jpg[/img]
[img]http://img222.imageshack.us/img222/5412/of2outlands050000.jpg[/img]
When it was supposed to be only on this model :
[img]http://img222.imageshack.us/img222/9841/of2outlands050003.jpg[/img]
How do I fix this ?
Thanks :)
Check some of the settings in your particle effect.
Ah, ok then it's a problem in the particle file. I thought it was some bug on this QC Setting.
Thanks for your help. :)
It might still be a problem with the model, I just don't know how else to try and fix this.
You could try coding a simple thing to end that particle system when the model is not being used, but I guess that would affect it if you have a multiplayer game.
Sorry, you need to Log In to post a reply to this thread.