Raised This Month: $ Target: $400
 0% 

Spawning infodecals!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UMTeleporter
SourceMod Donor
Join Date: Feb 2009
Old 03-15-2009 , 09:08   Spawning infodecals!
Reply With Quote #1

Nevermind. I figured out how.

Quote:
/*

Is it even possible?

I need the ability to spawn and delete decals...so temp ents won't do (since you can't delete them, afaik.)

So far, i've tried:

new instx = CreateEntityByName("infodecal");

decl String:tbufx[256];
Format(tbufx, sizeof(tbufx), "%.2f %.2f %.2f", aimPos[0], aimPos[1], aimPos[2]);

DispatchKeyValue(instx, "texture", "decals/custom/umt_decal03");
DispatchKeyValue(instx, "origin", tbufx);
DispatchSpawn(instx);
TeleportEntity(instx, aimPos, NULL_VECTOR, NULL_VECTOR);

and other variations of such code.

aimPos is a Float:[3], the result of tracing until a MASK_SOLID_BRUSHONLY and getting the end position... aimPos is guaranteed correct, i've used this positioning method for tempent decals.

In any case, the above code doesn't work.

EDIT: Yes, the decal is cached.

*/

Last edited by UMTeleporter; 03-15-2009 at 11:35.
UMTeleporter is offline
labelmaker
Member
Join Date: Mar 2009
Location: Kentucky USA
Old 05-29-2009 , 08:23   Re: Spawning infodecals!
Reply With Quote #2

Bump! Im needing this to work too if anyone can help.
__________________

Come Check Out the Popcorn Mod Yourself!!
labelmaker is offline
Send a message via Skype™ to labelmaker
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 05-29-2009 , 08:29   Re: Spawning infodecals!
Reply With Quote #3

Yeah I never did figure out a good way to do this. I made numerous attempts to do it with tempents but they always turned to face the player instead of actually appearing on the wall.

If anyone has a good way to spawn a decal on a wall it would be much appreciated. Theres a couple approved plugins that do it but neither works too well.
__________________
CrimsonGT is offline
labelmaker
Member
Join Date: Mar 2009
Location: Kentucky USA
Old 05-29-2009 , 08:42   Re: Spawning infodecals!
Reply With Quote #4

Im actually trying to apply it to the floor. Im gonna try some things and post my results.
__________________

Come Check Out the Popcorn Mod Yourself!!
labelmaker is offline
Send a message via Skype™ to labelmaker
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 19:30.


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