View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:48 pm



Reply to topic  [ 5 posts ] 
 Coalition guy spawns wit dummy weapons, how to fix? 
Author Message
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Coalition guy spawns wit dummy weapons, how to fix?
Hello,

A simple question, but I am even more simple so I can't figure it out.

This line (taken from an activity lua file) contains coalition weapons:
Code:
   self.WList = { "Grenade Launcher", "Sniper Rifle", "Heavy Sniper Rifle", "Gatling Gun", "Flamer", "Napalm Flamer", "Spike Launcher", "Flak Cannon", "Auto Pistol", "Shotgun", "Auto Shotgun", "Mauler Shotgun", "Rocket Launcher" }


But since dummies also have a Grenade Launcher, Sniper Rifle etc. the Coalition get spawned with those.
How would I tell the lua file to pick the guns from Coalition.rte at all times?


Thu Aug 18, 2011 5:43 pm
Profile
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
Post Re: Coalition guy spawns wit dummy weapons, how to fix?
Replace "WeaponName" with "Coalition.rte/WeaponName".


Thu Aug 18, 2011 6:40 pm
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Coalition guy spawns wit dummy weapons, how to fix?
Do the create functions still have the second parameter for a module?


Thu Aug 18, 2011 7:01 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Coalition guy spawns wit dummy weapons, how to fix?
Gawd, I really should have figured this one out myself. >_<

Thanks, I will build you a statue someday. :grin:


Thu Aug 18, 2011 7:05 pm
Profile
User avatar

Joined: Mon Apr 28, 2008 1:35 am
Posts: 383
Reply with quote
Post Re: Coalition guy spawns wit dummy weapons, how to fix?
findude wrote:
Do the create functions still have the second parameter for a module?


yes, example:

actor:AddInventoryItem(CreateHDFirearm("Heavy Pistol","Coalition.rte"));


Fri Aug 26, 2011 7:52 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 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.192s | 14 Queries | GZIP : Off ]