Page 1 of 1
Animation?
Posted: Sun May 25, 2003 12:58 pm
by Snake
Howe to stop the animation from a bush or a tree, so they doesn't move anymore.
I wonna do this because i use much of those trees and bushes and if i stop those movements it wil be better for the FPS, i think.
Posted: Sun May 25, 2003 8:17 pm
by TheStorm
The movement for the bush is not in the model itself, it's in the shader. Look at the tiki for the bush, find the name of the shaders and then locate the bush shaders within the shader files (in the /scripts folder). Copy the shader (only the shaders for the bush, wich is located in a shader file with several shaders) paste them into notepad, remove the "deformvertexes" thing in the the shader.
Save the file with any name and with the extension .shader, the important thing is that the actual name of the shaders inside the file have the same name as the original ones. Then put this new file into a pk3 file (folder /scripts) and save it with user-myname.pk3. Then it will replace the original shaders with your edited shaders and the animation will stop.
Note: if you do this you will stop the animation of the bushes in every map they are used.
It might be better to also make a custom tiki, you copy the tiki for the bush and use the same model but make a different quaked statement in the end where you use a custom name. Copy the original shaders as above but this time also give them a custom name, then change the name in the new tiki to the ones you have choosen. Save both the tiki and the shaders in a pk3. In mohradiant you will find your bush in the location you have set in the quaked statement.
The quaked statement could start something like this.
/*QUAKED static_natural_mymodifiedbush
If you make a copy of a model that has a collision mask (a .map file with the same name as the tiki) then also make sure you make a copy of that map file and name it with the name you have set for your modified tiki. (if you don't do that you will be able to walk through the model)
Warning: never replace anything directly in the original pak files!