View unanswered posts | View active topics It is currently Fri Apr 19, 2024 5:33 pm



Reply to topic  [ 7 posts ] 
 Healing 
Author Message
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post Healing
Since the pie scripted buttons work now could someone make a script which does:

create button in pie menu
[tab]if button is pressed
[tab][tab]heals user for 25 hp (or something)
[tab][tab]gib helddevice
[tab]else
[tab]end
end

something like that but in Lua of course


Sat Sep 17, 2011 9:52 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Healing
Do you mean creating a gun or a TDExplosive or any held device, make it have a pie slice that when selected gibs the held device and heals the user?

If I learn a bit on pie slices, I can make it for you, but only with a placeholder sprite =P


Sun Sep 18, 2011 12:23 am
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post Re: Healing
A TDExplosive is what I had in mind (Throwing stimpacks at people is fun!). I can make my own sprite so if you want you can use null and yes, when the pie slice is selected it heals the user and destroys the TDExplosive.

If you do end up making it then I thank you for taking the time to learn how to make the "pie slices".


Sun Sep 18, 2011 1:43 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Healing
I want to learn it anyway, you can never learn enough lua.

And it's a good training, so, I'm in.


Sun Sep 18, 2011 1:52 am
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post Re: Healing
Hmm I wonder, I might make a magazine version of this using the ammo replenish script that was in the T52 focus rifle that CC made...


Sun Sep 18, 2011 2:41 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Healing
Ok, so, I almost did it.

And Abdul told my I was doing it wrong, so he made a fix. I need to learn more lua.

Still, here you go! You can use my icon for the pie menu slice, but you'll have to credit me for it, since it's my best sprite.

Attachment:
Healing.rte.rar [4.2 KiB]
Downloaded 199 times


EDIT:

Hey, now that I think, you can give it higher throwing speeds, reduce it's mass and increase the GibImpulseLimit to make a throwable MedKit. In that way you can reach the guys you need to heal faster, or just toss it around while inventing some dialogs and a backstory:

"Dimitri, are you okay? You just recieved a bullet in your head!"
"No, Dafred, I'm starting to see everything blurry... Oh, and everything is so cold!"
"Here, take this!"
(Dafred throws MedKit to Dimitri)
"What's this?"
"Quickly, open your pie menu and use the AddHealth function!"
(Dimitri does what he is said to)
"Dafred, I feel much better now!"
(Dimitri stands up with his Kar98, aims at a Coalition heavy but gets crashed with a Drop Crate)
"Oh well."


Sun Sep 18, 2011 8:09 am
Profile
User avatar

Joined: Thu Jan 21, 2010 10:59 pm
Posts: 151
Reply with quote
Post Re: Healing
Hehe nice story you made there, thanks for making this!


Sun Sep 18, 2011 6:30 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


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.056s | 17 Queries | GZIP : Off ]