User Tag List

Results 1 to 6 of 6

Thread: weapon variables

  1. #1
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%

    weapon variables

    int weapon->Parent
    Returns the id of the item or the Screen->LoadNPC() number for the npc that created it or -1 in the case it was created by a script. Yes this is possible right now.

    bool weapon->isLit
    Returns true if the weapon is currently providing light.

    And may'be if it can be made possible

    int weapon->DriftDir
    If is the drift dir. 3-Shot and 5-Shot use this as do rising fireballs.
    Returns -1 if not drifting.

    int weapon->DriftStep
    This is the weapons drift step.
    Returns 0 if not drifting. Since weapons can have a negative step.

  2. #2
    Cor Blimey! CJC's Avatar
    Join Date
    Dec 2002
    Location
    Fading into the darkness
    Age
    35
    Posts
    1,398
    Mentioned
    150 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,618
    Level
    25
    vBActivity - Bars
    Lv. Percent
    0.98%
    Wait wut?!

    weapon->Parent is a thing?! That is so incredibly awesome!
    Where did you find these properties? I don't remember seeing them anywhere. Do you know which version added them?

  3. #3
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    You forget CJC, I have access to the code.
    Also you know this is suggestions right?

  4. #4
    Cor Blimey! CJC's Avatar
    Join Date
    Dec 2002
    Location
    Fading into the darkness
    Age
    35
    Posts
    1,398
    Mentioned
    150 Post(s)
    Tagged
    6 Thread(s)
    vBActivity - Stats
    Points
    6,618
    Level
    25
    vBActivity - Bars
    Lv. Percent
    0.98%
    Oh... oops.

    Well, I could make up an excuse for why I fell for it like a big goof, but instead I'll just say that I'm totally thumbs-up on this and it needs to be a thing.

  5. #5
    Username Kaiser SUCCESSOR's Avatar
    Join Date
    Jul 2000
    Location
    Winning.
    Age
    37
    Posts
    4,436
    Mentioned
    152 Post(s)
    Tagged
    7 Thread(s)
    vBActivity - Stats
    Points
    10,560
    Level
    30
    vBActivity - Bars
    Lv. Percent
    51.71%
    Quote Originally Posted by Mero View Post
    int weapon->Parent
    Returns the id of the item or the Screen->LoadNPC() number for the npc that created it or -1 in the case it was created by a script. Yes this is possible right now.
    This should refernce the NPCs ID. What if a NPC on screen died and the NPC that created it's reference number has changed? What if the NPC is no longer valid? Plus ID i just the more useful number. Also if script is the parent it's be nice if it somehow referenced what script made it.

  6. #6
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    Well that's how they work internally, so that's probably going to be how it'll have to work. With -1 being returned by a weapon created by a script. And no you cannot specify which script created it since all script created weapon have -1 as their parentIDs and parentItems.
    Last edited by Tamamo; 03-20-2015 at 01:03 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social