Forum

Kill Medals

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Kill Medals

Postby DusterdooSmock » Wed Oct 06, 2010 4:51 pm

Will this work to create kill medals that are similar to the ones in jomart2000's latest halo beta?

viewtopic.php?t=771
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby Spirit » Wed Oct 06, 2010 8:39 pm

It might help if you were more verbose or at least linked to said beta. I tried finding it and arrived in some psp modding forum but the language and crazy signatures gave me eye cancer.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Postby DusterdooSmock » Tue Oct 12, 2010 11:36 pm

Oh, sorry. :P

Here's a link to the beta:
http://www.sendspace.com/file/7gcur2

And, here's a link to a video of a similar build, which contains the kill medals:

http://www.youtube.com/watch?v=phreqvEJB4s
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby leileilol » Wed Oct 13, 2010 1:21 am

101mb RAR for badly converted huge 5mb+ MDL files of weapons?!!?! Talk about ignorance of limitations....
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby DusterdooSmock » Wed Oct 13, 2010 1:23 am

leileilol wrote:101mb RAR for badly converted huge 5mb+ MDL files of weapons?!!?!


Don't look at me, i didn't make it, i just want the kill medals.
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby leileilol » Wed Oct 13, 2010 1:55 am

You could probably get away with that by using bitflags similar to how you get items with the icons flashing in the inventory bar. You will wreck progdefs.h by doing that though unless you were doing it for Darkplaces by ways of csqc. With bitflags you won't be doing medal 'stacking' like Quake3 though.

That beta is useless to us btw. No source (as usual), and it's a psp binary.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby DusterdooSmock » Wed Oct 13, 2010 2:05 am

leileilol wrote:You could probably get away with that by using bitflags similar to how you get items with the icons flashing in the inventory bar. You will wreck progdefs.h by doing that though unless you were doing it for Darkplaces by ways of csqc. With bitflags you won't be doing medal 'stacking' like Quake3 though.

That beta is useless to us btw. No source (as usual), and it's a psp binary.


So, this won't work then?

viewtopic.php?t=771
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby leileilol » Wed Oct 13, 2010 2:14 am

That'll work, that's a completely different idea than medals. It's only a brief textual award that isn't kept as a graphic.
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby DusterdooSmock » Wed Oct 13, 2010 2:22 am

leileilol wrote:That'll work, that's a completely different idea than medals. It's only a brief textual award that isn't kept as a graphic.


Well, i want it to centerprint and play a sound.
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby Mexicouger » Wed Oct 13, 2010 2:23 am

leileilol wrote:That'll work, that's a completely different idea than medals. It's only a brief textual award that isn't kept as a graphic.


You could use Cvars to draw an image when you get a certain amount of kills, And then make a float that counts down to 0 when The medal shows up. And when 0 is hit, set the cvar value to 0.
User avatar
Mexicouger
 
Posts: 514
Joined: Sat May 01, 2010 10:12 pm

Postby DusterdooSmock » Wed Oct 13, 2010 2:29 am

Mexicouger wrote:
leileilol wrote:That'll work, that's a completely different idea than medals. It's only a brief textual award that isn't kept as a graphic.


You could use Cvars to draw an image when you get a certain amount of kills, And then make a float that counts down to 0 when The medal shows up. And when 0 is hit, set the cvar value to 0.


Meh, that's not what i want though. I just want it to centerprint and play a sound clip..
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Postby Jukki » Thu Oct 14, 2010 8:05 am

DusterdooSmock wrote:
Mexicouger wrote:
leileilol wrote:That'll work, that's a completely different idea than medals. It's only a brief textual award that isn't kept as a graphic.


You could use Cvars to draw an image when you get a certain amount of kills, And then make a float that counts down to 0 when The medal shows up. And when 0 is hit, set the cvar value to 0.


Meh, that's not what i want though. I just want it to centerprint and play a sound clip..


that would be easy. JUst make it so when player 1 kills player 2 it adds 1 to float and like self.multikill_time = time + 4; in playerpostthink add something that checks if multikill_time is bigger than time if it is then it checks if you have more than 1 in that float. if you have it will call function that prints and plays voice. Sory for messy example, i hope you did get something
Jukki
 
Posts: 214
Joined: Wed Apr 07, 2010 4:59 am

Postby DusterdooSmock » Fri Oct 15, 2010 4:49 pm

Jukki wrote:
DusterdooSmock wrote:
Mexicouger wrote:
leileilol wrote:That'll work, that's a completely different idea than medals. It's only a brief textual award that isn't kept as a graphic.


You could use Cvars to draw an image when you get a certain amount of kills, And then make a float that counts down to 0 when The medal shows up. And when 0 is hit, set the cvar value to 0.


Meh, that's not what i want though. I just want it to centerprint and play a sound clip..


that would be easy. JUst make it so when player 1 kills player 2 it adds 1 to float and like self.multikill_time = time + 4; in playerpostthink add something that checks if multikill_time is bigger than time if it is then it checks if you have more than 1 in that float. if you have it will call function that prints and plays voice. Sory for messy example, i hope you did get something


Thanks, but i already figured it out... :wink:
DusterdooSmock
 
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest