Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused

    Please I really need help for my MW2 iSnipe mod

    Hi all,

    I'm CriticalQs and nice to meet you and first of all i'm a beginner of GSC Coding,

    so I have problems with my mod,

    I would add in the mod personal killstreak rewards following how much is nice your kill,

    For example: Wallbang = predator
    360° on the right with silent kill (with throwing knife) = AC130


    I'm using for this work the inuke iSnipe mod

    Please help me,

    Thanks,


    Best Regards

  2. #2
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Please Help

  3. #3
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    Look in my signature dude...
    Also, look in the thread where you see how to make own killstreaks.
    (Look over my Threads)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  4. #4
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    ah, so you explain also for this? sorry i didn't know, If I have some doubt can I contact you or is a problem?

    I'm a GSC Coding beginner,
    but I tried for the wallbang = predator

    a coder told me only to do this:

    "In _damage.gsc

    Into that function

    Code:

    Select allCallback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )

    Add that code:

    Code: Select allif( iDFlags & level.iDFLAGS_PENETRATION > 0 && iDamage >= victim.health )
    {
    GiveYourPredatorKillstreakCode;
    };"


    I tried this, but it doesn't work. do you know why?

    And for the 360° kill?
    Last edited by Coder91; 09-06-2011 at 12:58 PM.

  5. #5
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    What are you trying to do here?
    maybe use
    Code:
    if(*code*)
    { //This means  Then.
    //Your code to do if the if it true
    }
    And about the flag codes, I am not sure they are used in CTF or not.
    But I suppose they do.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #6
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    I don't know how you are going to make an
    Code:
    if(360 noscope walbang silent shot acrooss map)
    {
    give a killstreak
    }
    Or whatever trickshot. Cool idea but it needs a lot of code, A WHOLE LOT!


    The lines in my Steam are i's

  7. #7
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Hey thanks for what you think about my idea,

    I have studied all your tutorials about Custom Killstreaks.
    But i'm looking for the code to set it up... for example i have the code for the wallbang, but I need also the other ones, i don't think that needs a lot of codes to complete the mod.
    What do you think about?

    Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )

    This is the code for the wallbang, so I wrote this in the _damage.gsc file:

    Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
    {
    if( iDFlags & level.iDFLAGS_PENETRATION > 0 && iDamage >= victim.health )
    {
    self giveWeapon("killstreak_predator_missile_mp"
    , 0, false);
    }

    But it doesn't work, do you know why?

    Thanks

  8. #8
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Just put it in _rank and self thread it in onPlayerSpawned(). I Am not usre about the
    Code:
    eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime
    part. Do youeven know what all this do. It doesn't look like anything that could work to me. This may cause it not to work too:
    Code:
    Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
    {	
    	if( iDFlags & level.iDFLAGS_PENETRATION > 0 && iDamage >= victim.health )
    	{
    		 self giveWeapon("killstreak_predator_missile_mp"
    , 0, false);
    	}
    And a simple thing: You have 1 open brace and 2 closed?!

    And as i said, wallbang is possible, the others is too but they will be very hard to code you you doesn't seem like the best coder.
    Last edited by Nachos; 09-07-2011 at 01:08 PM. Reason: Quote was unnecessary...


    The lines in my Steam are i's

  9. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    What is this wallbang you guys talk about?

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  10. #10
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Wallbang is when you shoot through a wall and you kill an other player

  11. #11
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Quote Originally Posted by Jorndel View Post
    What is this wallbang you guys talk about?
    When you get a kill through a wall you get a predator missile.


    The lines in my Steam are i's

  12. #12
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Is the code that I wrote in damage.gsc right?

    Yeah I know, I wrote that i'm GSC beginner, and what you wrote is the why i'm asking help,

    Do you know a way of coding where is 360 kill silent possible?

    The close bracket is at the end of the damage.gsc file of callback function

    how is the command for the degrees?

    for example probably failing:


    {
    ent function(320, 5);
    }

    function(dis, time)
    {
    ent moveZ(dis, time);
    }


    Something like that? what's the difference between moveX,Y,Z?

    Thanks again
    Last edited by Coder91; 09-07-2011 at 01:28 PM.

  13. #13
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,984
    Reputation
    176
    Thanks
    919
    My Mood
    Blah
    Quote Originally Posted by Coder91 View Post
    Is the code that I wrote in damage.gsc right?

    Yeah I know, I wrote that i'm GSC beginner, and what you wrote is the why i'm asking help,

    Do you know a way of coding where is 360 kill silent possible?

    The close bracket is at the end of the damage.gsc file of callback function

    how is the command for the degrees?

    for example probably failing:


    {
    ent function(320, 5);
    }

    function(dis, time)
    {
    ent moveZ(dis, time);
    }


    Something like that? what's the difference between moveX,Y,Z?

    Thanks again
    For the third time, it takes A LOT of code to make an if(360 silent shot). The only one i think can do it is @Yamato. But ofc he won't make that much code for someone else...

    And yes, ofc your code is failing... You do get the idea right, but i'm pretty sure it doesn't work.


    The lines in my Steam are i's

  14. #14
    Coder91's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    Hey,

    Ok I understand, but what you tell me about a LOT of things to do it's not enough to leave this work for me.

    I'm coding the script to insert in .gsc files. when I've finished could you check it out please?

    Once that I have found the codes for the wallbang and for the 360° silent kill (with trowhing knife in this order: 360° on the right, then shoot and on the end press g as throwing knife) the work will be finished

    So please don't give up on me now, I would have your high experience on GSC Coding for some advice.

    Thanks again.
    Last edited by Coder91; 09-07-2011 at 07:09 PM.

  15. #15
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,109
    My Mood
    Angelic
    Quote Originally Posted by Nachos View Post


    For the third time, it takes A LOT of code to make an if(360 silent shot). The only one i think can do it is @Yamato. But ofc he won't make that much code for someone else...

    And yes, ofc your code is failing... You do get the idea right, but i'm pretty sure it doesn't work.
    @Nachos

    If I am not blind....
    Look here:
    https://www.mpgh.net/forum/308-call-d...pets-*****ml#17
    Just edit it a little? Right?
    Last edited by Jorndel; 09-08-2011 at 12:57 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

Page 1 of 2 12 LastLast

Similar Threads

  1. Please i really need help
    By kwongmarco in forum League of Legends Help
    Replies: 5
    Last Post: 11-13-2011, 07:55 PM
  2. [Help Request] Need help for a plugin!
    By vivamoi in forum Minecraft Help
    Replies: 5
    Last Post: 10-26-2011, 09:55 PM
  3. [Help Request] Hello. Need help for TS3.
    By iPrima in forum CrossFire Help
    Replies: 17
    Last Post: 08-02-2011, 04:07 PM
  4. [Help Request] I really need help
    By JonathanTBM in forum Vindictus Help
    Replies: 7
    Last Post: 06-30-2011, 11:57 AM
  5. I really need help please
    By radikaal in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 01-23-2010, 02:22 PM