Raised This Month: $51 Target: $400
 12% 

spawn objects/entities [Help]


Post New Thread Reply   
 
Thread Tools Display Modes
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-22-2013 , 06:28   Re: spawn objects/entities [Help]
Reply With Quote #51

If you want to make something rotate, just write animations for it/a loop and set that as it's ref animation sequence? or give it multiple animations and send the model inputs to change animations, don't do that on game frame. Unless you are in TF2 you should be able to parent models to players. Else you can make them prop physics and have them bounce around or whatever.

You can precache/add a ton of files to the download table before you will have issues.
You do not have to (and should not precache the textures) only precache the mdl itself.

add all your files to downloads: http://docs.sourcemod.net/api/index....d=show&id=325&
precache your .mdl .. particles.. sprites.. :http://docs.sourcemod.net/api/index....d=show&id=104&

you have to add files to download table before the map starts, or clients can't get them unless the join later.
You can precache anytime, as long as it's before you USE the model, or the server will crash.
If you precache late, it will lag the server, perhaps slightly, best to do it all on map start, unless you plan on spawning tons of props rarely from a database (like a massive prop spawner for fun)

You could also do this by spawning a trigger_multiple and having it do onstarttouchall and onendtouchall and send outputs to the prop changing animations and skins.

Last edited by friagram; 03-22-2013 at 06:38.
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode