The boost speed I think that is deep coded in game, think that predator missile shoots a magicbullet:
For the change icon, I did something with this sometime ago, this is in _airstrike.gsc:Code:rocket = MagicBullet( "remotemissile_projectile_mp", startpos, targetPos, player );
Thread that SWeapon is the icon that shows when you killCode:losRadiusDamage( pos, radius, max, min, owner, eInflictor, sWeapon )
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); }
If I am not wrongCode: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); }
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);
Last edited by Yamato; 05-03-2011 at 06:40 AM.
I'm not sure these are right codes to what you asked for, but these might be helpful!Code:setDvar("missileRemoteSpeedUp", 900);//speed setDvar("missileRemoteSpeedTargetRange", "1700 1900");//speed at boost