View unanswered posts | View active topics It is currently Sun Dec 29, 2024 6:37 am



Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
 HDFirearm/Magazine functions 
Author Message
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post HDFirearm/Magazine functions
Code:
HeldDevice::GetSupportPos
HeldDevice::GetMagazinePos
HeldDevice::GetMuzzlePos
HeldDevice::GetMuzzleOffset
HeldDevice::GetStanceOffset
HeldDevice::GetSharpLength
HeldDevice::IsWeapon
HeldDevice::IsTool
HeldDevice::IsShield
HeldDevice::IsOneHanded
HeldDevice::Activate
HeldDevice::Deactivate
HeldDevice::Reload
HeldDevice::IsActivated
HeldDevice::IsReloading
HeldDevice::DoneReloading
HeldDevice::NeedsReloading
HeldDevice::IsFull


Code:
Magazine::GetRoundCount
Magazine::SetRoundCount
Magazine::IsEmpty
Magazine::IsFull
Magazine::IsOverHalfFull
Magazine::GetCapacity
Magazine::IsDiscardable

RoundCount is also a directly definable property, eg. self.Magazine.RoundCount = 400.

Code:
HDFirearm::GetRateOfFire
HDFirearm::SetRateOfFire
HDFirearm::GetRoundInMagCount
HDFirearm::GetMagazine
HDFirearm::SetNextMagazineName

Note SetRateOfFire and SetNextMagazineName. That will directly switch the next reloaded mag to any other .ini defined magazine.


Thu Aug 04, 2011 1:16 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: HDFirearm/Magazine functions
No friggen way.
That was pretty quick!


Thu Aug 04, 2011 1:18 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: HDFirearm/Magazine functions
Fantastic.

Do we have anything for defining pointers to sounds in lua?


Thu Aug 04, 2011 1:19 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: HDFirearm/Magazine functions
Nice one Grif. More reliable than the Wiki it seems.


Thu Aug 04, 2011 1:20 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: HDFirearm/Magazine functions
Coops9753 wrote:
Fantastic.

Do we have anything for defining pointers to sounds in lua?


Negative. PlaySound seems to be impossible to get to work.


Thu Aug 04, 2011 1:23 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: HDFirearm/Magazine functions
Guess we're staying classy with Emitters.

Sunovabitch


Thu Aug 04, 2011 1:26 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: HDFirearm/Magazine functions
You should add this topic over here.


Thu Aug 04, 2011 2:22 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: HDFirearm/Magazine functions
SetNextMagazineName() doesnt seem to respond.

Unless Im doing something wrong, it doesn't work.


Nevermind, A fresh CC restart makes it work.


Last edited by Coops on Thu Aug 04, 2011 3:35 am, edited 1 time in total.



Thu Aug 04, 2011 3:21 am
Profile
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post Re: HDFirearm/Magazine functions
Idea: You know how actors epicly fail with a weapon that has infinite ammo? Well you can have the ammo always stay at 1 with SetRoundCount().


Thu Aug 04, 2011 3:33 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: HDFirearm/Magazine functions
Data fixed actors with weapons that had infinite ammo.


Thu Aug 04, 2011 3:35 am
Profile
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post Re: HDFirearm/Magazine functions
Darn. I thought I had a good idea for once... would've been a first for me :)


Thu Aug 04, 2011 3:44 am
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: HDFirearm/Magazine functions
Oh my goodness, this is most interesting. Many of these can be used for obscene levels of awesome. Thanks Grif!


Thu Aug 04, 2011 3:23 pm
Profile WWW
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post Re: HDFirearm/Magazine functions
Jesus. Imma have to make some zombies +survivors when I get some free time, no more massive, unreliable workarounds.


Thu Aug 04, 2011 3:37 pm
Profile WWW
User avatar

Joined: Mon Jul 16, 2007 9:50 am
Posts: 1512
Location: Tallahassee, FL
Reply with quote
Post Re: HDFirearm/Magazine functions
Welp, time to engage in absurd amounts of magazine/ammo swapping. I didn't realize they'd make it THIS easy.


Thu Aug 04, 2011 4:13 pm
Profile YIM
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: HDFirearm/Magazine functions
Isn't there something like self.EjectionPos?


Wed Aug 10, 2011 2:46 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

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.034s | 13 Queries | GZIP : Off ]