[Logo]
 
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Fix for Shield Guns and Assault Rifles for Loaded Weapons  XML
Forum Index -> Druids RPG
Author Message
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Attached - didn't test it on a "dedicated" server because when I run a dedicated server, weapons disappear out of inventory (not sure why yet and really not in the mood to figure it out - note that this is happening with a completely unedited version of Druids200 for me).

Basically it involved destroying any existing SG or AR and then just adding them into the default properties.

I don't know why, but I can't for the life of me (at least not at the moment) get Denial to destroy a Shield Gun (or I'm guessing an assault rifle) during the ModifyPawn - even when I didn't bother to check that I was replacing the shield gun! So for some reason, though the lines should be identical, in Denial's ModifyPawn, you can't apparently switchweapon or destroyinventory.

EDIT 8/14/06: Removed attachment - buggy

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Here's an edited Denial class. Note that it is *not at all* tested successfully in any enviornment - see comments near my edits (do a search for SwitchWeapon). The logic is mostly there, except that I'm not sure if the "if" statements attempting to detect if the stored weapon is an SG or AR work. I know (from my experience with DruidLoaded.uc) that the SwitchWeapon and DestroyInventory should work.

I'm guessing they don't work on a Listen Server because of the "ROLE" check. As noted elsewhere, I've noticed some oddness with my attempts to test (anything really) on a Dedicated Server.

Use with caution.

VERIFIED NOT WORKING AT ALL. DO NOT USE! Can't seem to remove attachment.
 Filename DruidNoWeaponDrop.uc [Disk] Download
 Description DruidNoWeaponDrop.uc, otherwise known as "Denial"
 Filesize 6 Kbytes
 Downloaded:  138 time(s)


I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

Okay I got a valid "if" statement for DruidNoWeaponDrop to check the "Denial" weapon and do something based on it. However, for some reason the "SwitchWeapon" and "DeleteInventory" lines that worked perfectly fine in DruidLoaded (which I've since tested in a dedicated environ and can verify that they apparently work) don't work in DruidNoWeaponDrop. I confuzzled.

I can verify that the if statement works because I've got a "warn" debugging line that says "I'm about to do what you want me to do", but it doesn't actually do it.

So now I'm wondering if there's a point at which a player is "dead" before they become "alive", and Denial gives them their old weapons while they are "dead", and since they are "dead", their default SG and AR can't be toasted.

For the curious, this is where I'm at:

EDIT 8/14/06: Removed - buggy

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
BotFodder

Wicked Sick!
[Avatar]

Joined: 01/13/2006 15:23:41
Messages: 1239
Location: Florida
Offline

I am a goob.

I had my weapon slots all messed up. I've got working DruidLoaded and DruidNoWeaponDrop so far - but not necessarily together. Now I'm going to work on making sure they play nicely together as far as Loaded folks having NoDrop.

I'll be posting a new thread for this eventually that covers both skills.

(Edit 8/14/06: Actually, I'll be posting the two files zipped together here after I hear from Dru about whether or not we want to worry about insane people who buy Denial before Loaded Weapons, or if someone else posts that they want to see the two files now!)

The problem is that if someone is silly enough to get Denial 2 before getting any Loaded Weapons, the order in which they kick in means that any SG or AR that's kept due to Denial will be toasted by DruidLoaded. Code wise, this is the same (Edit 8/14/06: well, not the same, but similar - however, the fix is going to have to be a lot different) bug that causes wierd SG (and likely AR) problems when Denial is purchased before Ghost (Denial kicks in, takes your SG and/or AR away, and then you Ghost, not really dying).

I use the Futurama Prof. Farnsworth Skin: http://www.disastrousconsequences.com/dcforum/posts/list/1595.page
WM: (DC)BotFodder 170
MM: (DC)BotDoctor 141
AM: (DC)BotBooster 147
http://ericdives.com/ - My DC Newbie FAQ: http://tinyurl.com/lz229
Twitter: http://twitter.com/ericdives
[WWW] aim icon [MSN]
 
Forum Index -> Druids RPG
Go to: