Add Text top Center of Screen

Post » Sat May 28, 2011 8:30 am

What I am looking to do. I love COD and I was using the mod http://www.newvegasnexus.com/downloads/file.php?id=37090 and truth be told, I never really look and see how many bullets I have left, so I made it added a message box that says Reload Now!!! Then I was playing COD today and thought it would be cool if I could add "Reload" to the top center of the screen using NVSE?


so heres a short version

Get ClipSize
Get AmmoLeftInClip - or tell if clip is empty either works.

if ClipSize >= 4 then
if AmmoLeftInClip <= 3 then
Display "Reload" // Top and Center of screen.
endif
endif
User avatar
Louise Andrew
 
Posts: 3333
Joined: Mon Nov 27, 2006 8:01 am

Post » Sat May 28, 2011 3:00 pm

Well, unless they added some super secret (Awesome!) function that wasn't in Fallout 3, no you cannot add text to the top-center of the screen. The best you could do is a message - not a box, though - that pops up repeatedly until you reload. Also, with your system of if the clip is greater than 4, and ammo is less than 3, I would change that. If anything make it more like, if clip size is 2 AmmoLeft/ClipSize <= 50%, if clip size is 3-5 AmmoLeft/ClipSize <= 30%, if clip size is 5-10 AmmoLeft/ClipSize <= 25%, and if clip size is 10-30 AmmoLeft/ClipSize <= 15% That way if you have a machine gun with 30 rounds, once you have about 5 left it tells you, but if you have a shotgun with 2, it tells you after shooting one of the two shots.
User avatar
JUan Martinez
 
Posts: 3552
Joined: Tue Oct 16, 2007 7:12 am

Post » Sat May 28, 2011 5:35 am

Well, unless they added some super secret (Awesome!) function that wasn't in Fallout 3, no you cannot add text to the top-center of the screen. The best you could do is a message - not a box, though - that pops up repeatedly until you reload. Also, with your system of if the clip is greater than 4, and ammo is less than 3, I would change that. If anything make it more like, if clip size is 2 AmmoLeft/ClipSize <= 50%, if clip size is 3-5 AmmoLeft/ClipSize <= 30%, if clip size is 5-10 AmmoLeft/ClipSize <= 25%, and if clip size is 10-30 AmmoLeft/ClipSize <= 15% That way if you have a machine gun with 30 rounds, once you have about 5 left it tells you, but if you have a shotgun with 2, it tells you after shooting one of the two shots.


If he can find the detection routines for being empty, he can go the HUD route.

I noticed that the one of the HUDs out therer...either UNIFIED or EXTENDED, dont recall which, adds a radiation meter (circle), and UNDER it is a threat meter that ONLY appears when a critter is in a certain range of you...it then pulses on screen while the critter(s) are there, and even tells you how many are there apparently.

Since this little hud thing pops up then goes away like that, Im thinking i could detect being empty if theres a routine for that, and then pop up as needed.

Anyway, Im not a hud (xml) programmer, so you might want to ask the makers of MTUI or Darnified, or the other huds.
User avatar
anna ley
 
Posts: 3382
Joined: Fri Jul 07, 2006 2:04 am

Post » Sat May 28, 2011 6:55 am

I want to go the HUD route, I already knew I had to, but thank you for clearing that up. My problem is I have never ever even tried to tough the HUD commands in FOSE so I am not sure how to even get started, was hoping someone could point me in the right direction.


Gunmaster95 - What you were talking about it being based on clip size, it already is, I just didn't fell like writing it all out ( I'm lazy. :snoring: ) so I wrote a quick example. but thank you for helping either way.
User avatar
George PUluse
 
Posts: 3486
Joined: Fri Sep 28, 2007 11:20 pm


Return to Fallout: New Vegas