| Author | Message | 
        
			| Grif REAL AMERICAN HERO 
					Joined: Sat Jan 27, 2007 10:25 pm
 Posts: 5655
   |   HDFirearm/Magazine functionsCode: HeldDevice::GetSupportPosHeldDevice::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::GetRoundCountMagazine::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::GetRateOfFireHDFirearm::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 | 
					
					   | 
	
	
		|  | 
	
			| Asklar Data Realms Elite 
					Joined: Fri Jan 07, 2011 8:01 am
 Posts: 6211
 Location: In your office, earning your salary.
   |   Re: HDFirearm/Magazine functionsNo friggen way.That was pretty quick!
 
 
 | 
		
			| Thu Aug 04, 2011 1:18 am | 
					
					   | 
	
	
		|  | 
	
			| Coops 
					Joined: Wed Feb 17, 2010 12:07 am
 Posts: 1545
 Location: That small peaceful place called Hell.
   |   Re: HDFirearm/Magazine functionsFantastic.
 Do we have anything for defining pointers to sounds in lua?
 
 
 | 
		
			| Thu Aug 04, 2011 1:19 am | 
					
					   | 
	
	
		|  | 
	
			| Roast Veg Data Realms Elite 
					Joined: Tue May 25, 2010 8:27 pm
 Posts: 4522
 Location: Constant motion
   |   Re: HDFirearm/Magazine functionsNice one Grif. More reliable than the Wiki it seems. 
 
 | 
		
			| Thu Aug 04, 2011 1:20 am | 
					
					   | 
	
	
		|  | 
	
			| Grif REAL AMERICAN HERO 
					Joined: Sat Jan 27, 2007 10:25 pm
 Posts: 5655
   |   Re: HDFirearm/Magazine functionsCoops9753 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 | 
					
					   | 
	
	
		|  | 
	
			| Coops 
					Joined: Wed Feb 17, 2010 12:07 am
 Posts: 1545
 Location: That small peaceful place called Hell.
   |   Re: HDFirearm/Magazine functionsGuess we're staying classy with Emitters.
 Sunovabitch
 
 
 | 
		
			| Thu Aug 04, 2011 1:26 am | 
					
					   | 
	
	
		|  | 
	
			| Asklar Data Realms Elite 
					Joined: Fri Jan 07, 2011 8:01 am
 Posts: 6211
 Location: In your office, earning your salary.
   |   Re: HDFirearm/Magazine functionsYou should add this topic over here .
 
 | 
		
			| Thu Aug 04, 2011 2:22 am | 
					
					   | 
	
	
		|  | 
	
			| Coops 
					Joined: Wed Feb 17, 2010 12:07 am
 Posts: 1545
 Location: That small peaceful place called Hell.
   |   Re: HDFirearm/Magazine functionsSetNextMagazineName() 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 | 
					
					   | 
	
	
		|  | 
	
			| Awesomeness 
					Joined: Sat Jun 19, 2010 5:02 pm
 Posts: 331
 Location: Mekkan
   |   Re: HDFirearm/Magazine functionsIdea:  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 | 
					
					   | 
	
	
		|  | 
	
			| Coops 
					Joined: Wed Feb 17, 2010 12:07 am
 Posts: 1545
 Location: That small peaceful place called Hell.
   |   Re: HDFirearm/Magazine functionsData fixed actors with weapons that had infinite ammo. 
 
 | 
		
			| Thu Aug 04, 2011 3:35 am | 
					
					   | 
	
	
		|  | 
	
			| Awesomeness 
					Joined: Sat Jun 19, 2010 5:02 pm
 Posts: 331
 Location: Mekkan
   |   Re: HDFirearm/Magazine functionsDarn.  I thought I had a good idea for once... would've been a first for me  
 
 | 
		
			| Thu Aug 04, 2011 3:44 am | 
					
					   | 
	
	
		|  | 
	
			| Shook 
					Joined: Fri Feb 16, 2007 8:43 pm
 Posts: 1695
 Location: AH SHIT FUCK AUGH
   |   Re: HDFirearm/Magazine functionsOh 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 | 
					
					     | 
	
	
		|  | 
	
			| Geti 
					Joined: Sun Jul 13, 2008 9:57 am
 Posts: 4886
 Location: some compy
   |   Re: HDFirearm/Magazine functionsJesus. 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 | 
					
					     | 
	
	
		|  | 
	
			| Darlos9D 
					Joined: Mon Jul 16, 2007 9:50 am
 Posts: 1512
 Location: Tallahassee, FL
   |   Re: HDFirearm/Magazine functionsWelp, 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 | 
					
					     | 
	
	
		|  | 
	
			| Asklar Data Realms Elite 
					Joined: Fri Jan 07, 2011 8:01 am
 Posts: 6211
 Location: In your office, earning your salary.
   |   Re: HDFirearm/Magazine functionsIsn't there something like self.EjectionPos? 
 
 | 
		
			| Wed Aug 10, 2011 2:46 am | 
					
					   | 
	
	
		|  | 
	
	
		|  |