Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › General › Modeling and Mapping Chat › sprites or models
4 posts, 3 people · 4,867 views Thread Rating: ★★★★★
closedsprites or models
Started by peter on 06-03-2009, 03:17 PM
P peter
started this thread
Posts: 10
Threads: 5
Joined: May 2009
06-03-2009, 03:17 PM #1

when you want to add plants in a map what is the difference from models and sprites? What would you use? and what is the code to add. minus the location.nnnAny help would be perfect!

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
06-03-2009, 05:00 PM #2

well i use env_model entities for models (*.mdl) and for sprites (*.spr) i usually use env_glow but sometimes env_spritennnot sure if these 'plants' you want to add are models or if theyre sprites.. nbut for models heres an example sort of thing:nn

n{n"origin" "### ### ###"n"spawnflags" "2"n"model" "models/whatever.mdl"n"rendercolor" "0 0 0"n"angles" "0 ### 0"n"targetname" "whatever_u_want"n"classname" "env_model"n}n
nn-origin is self explanatoryn-spawnflags set to 2 means it drops to the ground (that way you dont have to place it perfectly in the map, depending on if its bone (or main bone if more then one) is positioned correctlyn-model is also self explanatoryn-rendercolor might not be needed as id assume the default is prob 0 0 0n-angles is only needed if youre going to rotate it, and its pitch yaw roll i believe, so usually you only want to edit the middle valuen-targetname is just anything, but ive found that if you leave it blank the model usually doesnt show up ingamen-classname is a given too

P peter
started this thread
Posts: 10
Threads: 5
Joined: May 2009
06-04-2009, 07:01 PM #3

Thanks diamond! that is what I needed!!

Vet
posted here
Posts: 229
Threads: 24
Joined: Oct 2006
06-06-2009, 12:21 PM #4

Don't forget that if you're adding non-standard models/sprites, you'll want to edit/create a .res file and upload them to your content server.

Archive › Old Forum Threads › General › Modeling and Mapping Chat › sprites or models
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC