Fortress Forever

Go Back   Fortress Forever > Projects > Fortress Forever > Bug

Problems when giving the Incendiary Cannon with Lua. Issue Tools
issueid=426 04-08-2013 10:35 PM
worst ff player eu
Problems when giving the Incendiary Cannon with Lua.
player:GiveWeapon("ff_weapon_ic", true) doesn't work correctly.

When using player:GiveWeapon(), if the weapon classname is "ff_weapon_ic", then no matter whether you put true or false for whether it will automatically switch weapon, it NEVER auto switches weapon.

If you have no weapons due to player:RemoveAllWeapons() then the IC STILL doesn't auto switch.

In order to get the IC out, you have to manually scroll to it. It only affects the IC, which is the strange thing :L
Issue Details
Project Fortress Forever
Category LUA (Map Scripting)
Status Unconfirmed
Priority 7 - Med/Low
Affected Version 2.41
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

04-09-2013 02:39 PM
worst ff player eu
 
The Civilian doesn't appear to be able to hold certain weapons, too.

He can't be given the Flamethrower, Railgun, Nailgun, or the Tranquilizer.

EDIT: Ah, sorry. It turns out the Civ has max amount of Cells as 0 (No Flamethrower), and max amount of Nails as 0 (No Rail, Nail or Tranq). He can have the weapons, he'll just never equip 'cause he can't fire them.
Reply
Reply

All times are GMT. The time now is 11:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.