Page 972 of 972

Re: The "How do I..." Thread

Posted: Sun Nov 19, 2017 5:48 am
by worldendDominator
Zeberpal wrote:I'm trying to get some actors, which appear/dissapear as you approach/walk away to them.
What could be hte problem of script not working properly?(actors are always invisible despite the distance from player to actor)
Make sure you have the activators right. What exactly is the r parameter?
cortlong50 wrote:when using the (...) script...how do i get it to scale across the entire screen? cant seem to figure it out. does the image have to match resolution? because if so....that sucks.
You can try SetHudSize.

Re: The "How do I..." Thread

Posted: Sun Nov 19, 2017 9:39 am
by cortlong50
worldendDominator wrote:
cortlong50 wrote:when using the (...) script...how do i get it to scale across the entire screen? cant seem to figure it out. does the image have to match resolution? because if so....that sucks.
You can try SetHudSize.
ive been messing with it and cant figure it out, including the sethudsize. i have zero idea. especially since whoever writes the wiki obviously communicates like a robot and reads like redundant stero instructions. iwant it to work for all resolutions, just a quick flash of some creepy shit. any help would be appreciated, right now i have

Code: Select all

//sethudsize (1600,900,false);
	SetFont("TUMBLR");
	HudMessage(s:"A" ; HUDMSG_PLAIN, 0, CR_UNTRANSLATED, 0.0, 0.0, 1.0);

like seriously why hasnt just "flash image in current resoltuion" been implemented. especially with how sethudsize all of a sudden changes the way you position it on the screen? why would that even be the case? why not just keep it the same system when used in conjunction.

jesus im pissed about this hahaha

like how is "Now, the number of pixels between 25 and 175 is 175 - 25 = 150. So, (150 * (h / maxh)) is the actual amount of pixels between 25 and 175 to place the > marker. Due to integer division, this must be refactored to ((150 * h) / maxh). Finally, it starts at 25 and ends at 175, so the value must be subtracted from 175 to get the final formula." even a coherent sentence let alone something somebody could learn from? so the value (what value) must be subtracted from 175 (how did you get to 175 from 150? what just happened?) to get the final formula." never actually saying what the final formula is.

im seriously going to master ACS functions so I can go back and rewrite the wiki because half of thethings ive read tonight have made absolutely no sense to me. and if you can read that...cool. i cant.

ive edited this comment like 4 times to really drive home my disdain for this "put an image on the screen" business because it is a wonky hacky feeling system that i feel definitely needs an upgrade...graf? you down?

Re: The "How do I..." Thread

Posted: Sun Nov 19, 2017 9:51 am
by Nevander
Wouldn't you just do SetHudSize of the resolution of the image?

Re: The "How do I..." Thread

Posted: Sun Nov 19, 2017 10:21 am
by cortlong50
Nevander wrote:Wouldn't you just do SetHudSize of the resolution of the image?
with ACS code

Code: Select all

sethudsize (500.0,378.0,true);
	SetFont("TUMBLR");
	HudMessage(s:"A" ; HUDMSG_PLAIN, 0, CR_UNTRANSLATED,250.0,189.0, 1.0);
setting the hudsize to the size of the image and then putting in half the coordinates to center it (as the article says) i...just dont see anything at all on my screen.

in fact using hudsize at all doesnt show anything on my screen when activated. its...annoying.