HelpPredator Missile edits

Posts 1–15 of 18 · Page 1 of 2
Predator Missile edits
Can i choose the speed of the missile, maybe with a dvar and can i choose the kill icon of one weapon to other weapon kill icon?
Quote Originally Posted by sdm View Post
Can i choose the speed of the missile, maybe with a dvar and can i choose the kill icon of one weapon to other weapon kill icon?
You even looked in the GSC Rip collection?

Cuse you find alot usefull there.....
please put here what i need change to choose the missile speed and the killicon
Quote Originally Posted by sdm View Post
please put here what i need change to choose the missile speed and the killicon
The boost speed I think that is deep coded in game, think that predator missile shoots a magicbullet:

Code:
	rocket = MagicBullet( "remotemissile_projectile_mp", startpos, targetPos, player );
For the change icon, I did something with this sometime ago, this is in _airstrike.gsc:

Code:
losRadiusDamage( pos, radius, max, min, owner, eInflictor, sWeapon )
Thread that SWeapon is the icon that shows when you kill
I didnt understand, please just tell me how to i change the ac130_40mm bullets kill icon to the predator missile's killicon
Quote Originally Posted by sdm View Post
I didnt understand, please just tell me how to i change the ac130_40mm bullets kill icon to the predator missile's killicon
So complicate is to replace there? well, then use this, I used it in my zombie mod for a few things, I dont know who made this code, to use: self thread DamageArea(blablabla);, in weapon you put the thing you want

Code:
DamageArea(Point,Radius,MaxDamage,MinDamage,Weapon,TeamKill)
{
        KillMe = false;
        Damage = MaxDamage;
        foreach(player in level.players){
                DamageRadius = distance(Point,player.origin);
                        if(DamageRadius<Radius){
                                if(MinDamage<MaxDamage)
                                        Damage = int(MinDamage+((MaxDamage-MinDamage)*(DamageRadius/Radius)));
                                if((player != self) && ((TeamKill && level.teamBased) || ((self.pers["team"] != player.pers["team"]) && level.teamBased) || !level.teamBased))
                                        player thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper(player,self,Damage,0,"MOD_EXPLOSIVE",Weapon,player.origin,player.origin,"none",0,0);
                                if(player == self)
                                        KillMe = true;
                        }
        wait 0.05;
        }
        RadiusDamage(Point,Radius-(Radius*0.25),MaxDamage,MinDamage,self);
        if(KillMe)
                self thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper(self,self,Damage,0,"MOD_EXPLOSIVE",Weapon,self.origin,self.origin,"none",0,0);
}
I cannot see where it changes the killicon ac130_40mm to a predator missile
Quote Originally Posted by sdm View Post
I cannot see where it changes the killicon ac130_40mm to a predator missile
Code:
DamageArea(Point,Radius,MaxDamage,MinDamage,Weapon,TeamKill)
{
        KillMe = false;
        Damage = MaxDamage;
        foreach(player in level.players){
                DamageRadius = distance(Point,player.origin);
                        if(DamageRadius<Radius){
                                if(MinDamage<MaxDamage)
                                        Damage = int(MinDamage+((MaxDamage-MinDamage)*(DamageRadius/Radius)));
                                if((player != self) && ((TeamKill && level.teamBased) || ((self.pers["team"] != player.pers["team"]) && level.teamBased) || !level.teamBased))
                                        player thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper(player,self,Damage,0,"MOD_EXPLOSIVE","HERE",player.origin,player.origin,"none",0,0);
                                if(player == self)
                                        KillMe = true;
                        }
        wait 0.05;
        }
        RadiusDamage(Point,Radius-(Radius*0.25),MaxDamage,MinDamage,self);
        if(KillMe)
                self thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper(self,self,Damage,0,"MOD_EXPLOSIVE","HERE",self.origin,self.origin,"none",0,0);
}
If I am not wrong
Quote Originally Posted by Jorndel View Post
Code:
DamageArea(Point,Radius,MaxDamage,MinDamage,Weapon,TeamKill)
{
        KillMe = false;
        Damage = MaxDamage;
        foreach(player in level.players){
                DamageRadius = distance(Point,player.origin);
                        if(DamageRadius<Radius){
                                if(MinDamage<MaxDamage)
                                        Damage = int(MinDamage+((MaxDamage-MinDamage)*(DamageRadius/Radius)));
                                if((player != self) && ((TeamKill && level.teamBased) || ((self.pers["team"] != player.pers["team"]) && level.teamBased) || !level.teamBased))
                                        player thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper(player,self,Damage,0,"MOD_EXPLOSIVE","HERE",player.origin,player.origin,"none",0,0);
                                if(player == self)
                                        KillMe = true;
                        }
        wait 0.05;
        }
        RadiusDamage(Point,Radius-(Radius*0.25),MaxDamage,MinDamage,self);
        if(KillMe)
                self thread maps\mp\gametypes\_damage::finishPlayerDamageWrapper(self,self,Damage,0,"MOD_EXPLOSIVE","HERE",self.origin,self.origin,"none",0,0);
}
If I am not wrong
Something like this, you need to edit the position where it hits and the damage, max damage and minus damage. Change the weapon is there to predator magicbullet and . The kill icons are game strings that you can only change by using these threads I said you or by hex editing game.

Code:
self thread DamageArea(self getCursorPos(),10,1000,600,"barrett_mp",false);
Code:
setDvar("missileRemoteSpeedUp", 900);//speed
setDvar("missileRemoteSpeedTargetRange", "1700 1900");//speed at boost
I'm not sure these are right codes to what you asked for, but these might be helpful!
Quote Originally Posted by tjwjdqls75 View Post
Code:
setDvar("missileRemoteSpeedUp", 900);//speed
setDvar("missileRemoteSpeedTargetRange", "1700 1900");//speed at boost
I'm not sure these are right codes to what you asked for, but these might be helpful!
Maybe so.

Yamato and I like to use advanced things I guess.

But Remember, he also want to change the Icon.
( not sure what he mean by that but.. )
thanks guys this work
I have a problem, because when i kill with ever weapon, the game shows me the predator killicon, but i want only for ac130_40mm_mp
Quote Originally Posted by sdm View Post
I have a problem, because when i kill with ever weapon, the game shows me the predator killicon, but i want only for ac130_40mm_mp
Code:
           if ( self getCurrentWeapon() == "ac130_40mm_mp" )
           {
           blablabla
           }
?
doesnt work, the mod works, but dont change the kill icon
Posts 1–15 of 18 · Page 1 of 2
This thread is closed for replies.

Tags for this Thread

None

Talk with us