Please Help
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
Look in my signature dude...
Also, look in the thread where you see how to make own killstreaks.
(Look over my Threads)
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.
What are you trying to do here?
maybe use
And about the flag codes, I am not sure they are used in CTF or not.Code:if(*code*) { //This means Then. //Your code to do if the if it true }
But I suppose they do.
I don't know how you are going to make an
Or whatever trickshot. Cool idea but it needs a lot of code, A WHOLE LOT!Code:if(360 noscope walbang silent shot acrooss map) { give a killstreak }
The lines in my Steam are i's
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
Just put it in _rank and self thread it in onPlayerSpawned(). I Am not usre about the
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:eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime
And a simple thing: You have 1 open brace and 2 closed?!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 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
What is this wallbang you guys talk about?
Wallbang is when you shoot through a wall and you kill an other player
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.
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
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.
@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.