View unanswered posts | View active topics It is currently Thu Jan 09, 2025 11:44 pm



Reply to topic  [ 5 posts ] 
 Text floating above enemies on hit? 
Author Message
User avatar

Joined: Mon Dec 08, 2008 1:11 pm
Posts: 17
Reply with quote
Post Text floating above enemies on hit?
I've made an revolver + sprites and sounds, it's pretty much finished, all that it needs is something that makes it stand out. I noticed that hitting the head of an enemy generally instagibs him, while shooting the body or legs deals about 20~30 damage. (Plus the damage of impact when the enemy gets knocked backwards and flies into a wall, but that's fun and I won't fix it) I was wondering if it was possible to have a large text pop up above an enemy such as CRITICAL HIT! when you headshot an enemy. Is there any way to do it? I'm new at modding and I've never used LUA before.


Thu Jun 04, 2009 3:49 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Text floating above enemies on hit?
We don't have access to attachables yet, so we can't access the burst damage for wounds, nor the emission damage. Also, we don't have drawing functions. When we have those two, it would be possible to write the damage to the screen.
If you want, I think right now you could make a "Critical Hit" thing by using the MOPixel's Destroy() or Remove() event (if those exist, not sure) and spawning a short-lived MOSParticle above the hit.


Thu Jun 04, 2009 4:27 pm
Profile
User avatar

Joined: Mon Dec 08, 2008 1:11 pm
Posts: 17
Reply with quote
Post Re: Text floating above enemies on hit?
Ah, alright then. I do remember a mod (mercenaries mod I think?) having a text float above the soldier after reloading a weapon or something like that. I'll look into it.


Thu Jun 04, 2009 4:46 pm
Profile
A HUMAN BRAIN, SAFELY INSULATED FROM THE TERRORS OF HYPERSPACE
User avatar

Joined: Sun Jan 28, 2007 8:54 pm
Posts: 1070
Location: Somewhere beyond the endless sea of hyperspace, fighting for your right to call a planet home.
Reply with quote
Post Re: Text floating above enemies on hit?
Deltasquid wrote:
Ah, alright then. I do remember a mod (mercenaries mod I think?) having a text float above the soldier after reloading a weapon or something like that. I'll look into it.


If you mean the rail gun, it's gibbing a glow with a sprite that says 'Ready to Fire' or some such.

You could make a custom enemy who did the same thing when his head explodes, but you can't do it with lua just yet.


Thu Jun 04, 2009 10:34 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Text floating above enemies on hit?
Also to do it on wounds you'd have to have custom actors which bleed a sprite with a muzzleflash that displays text.


Thu Jun 04, 2009 10:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.050s | 14 Queries | GZIP : Off ]