O Cutmanmike criador do GvH, criou mais uma feature interessante:
Cutman escreveu:Note: This is a repost of this thread.
Is this an improvement to an already-existing feature, or a new feature entirely: A new feature
If an improvement, what original feature is it improving upon: N/A
How would this work: A new ACS function: CustomMedal(item(s), image, givetokiller)
item(s): Name of the medal displayed on the player's screen.
image: The graphic of the medal to be displayed.
givetokiller: If true, it gives the medal to the player who just killed the activator rather than the activator him/herself.
CustomMedal would be a function to give the player a brand new medal without having to rely on a new lump. In the example below the player would get a new medal called "Jackpot!" with the graphic "MDLZ0" when he gets a total of 777 frags. This would mean you could make medals for almost anything you can do in ACS, which of course is a limitation but it would allow an easy way for developers to create their own medals.
Can you give an example in how useful this feature would be: It would be useful for mod authors that do not wish to use the current medals or simply wish to make their own. Here are some more examples of where you could use this:script 1 ENTER
{
if(PlayerFrags()==777){
CustomMedal(s:"Jackpot!", "MDLZ0", 0);
Terminate;
}
Delay(1);
Restart;
}
Código: Selecionar todos
script 2 ENTER // The Collector medal. Recieved when a player gets all the Doom2 weapons. { if(CheckInventory(BFG9000)>0){ if(CheckInventory(Shotgun)>0){ if(CheckInventory(SuperShotgun)>0){ if(CheckInventory(RocketLauncher)>0){ if(CheckInventory(PlasmaRifle)>0){ if(CheckInventory(Chaingun)>0){ if(CheckInventory(Chainsaw)>0){ CustomMedal(s:"The Collector!", "MDLX0",0); Terminate; }}}}}}}} Delay(1); Restart; }
Código: Selecionar todos
script 3 DEATH // Super corpse man! medal. Recieved if you die while 500 map pixels high in the air. { if(GetActorFloorZ(ActivatorTID())>=500.0){ CustomMedal(s:"Super corpse man!", "MDLY0",0); } }
Código: Selecionar todos
script 4 DEATH // Bum Killer medal. Recieved when killing a player who currently has his fists selected. { if(CheckWeapn("Fist")){ CustomMedal(s:"Bum killer", "MDLR0", 1); // Since the last parameter is true, it gives it to the killer } }
Código: Selecionar todos
script 5 ENTER // Girl power! medal. Recieved after winning the game AND the player is a female! { if(GetCVar("fraglimit")==PlayerFrags()){ if(GetPlayerInfo(PlayerNumber(), PLAYERINFO_GENDER) == 1){ CustomMedal(s:"Girl power!", "MDLD0", 0); Terminate; } } Delay(1); Restart; }