Page 1 of 1

Request* Royal mod

Posted: 18 Sep 2012, 10:22
by Mikey
If there are any capable and willing script editors out there, I have a small request.

I would like a modified version of the royal game mode, where the player who activates the outzone gets a bonus of having a lasergun for 10 seconds !

Please .... someone :D

Re: Request* Royal mod

Posted: 18 Sep 2012, 10:47
by Awpteamoose
Mikey wrote:If there are any capable and willing script editors out there, I have a small request.

I would like a modified version of the royal game mode, where the player who activates the outzone gets a bonus of having a lasergun for 10 seconds !

Please .... someone :D
You can't change weapons of spawned players, it's an arbitrary restriction of maniascript.
The most of what can be done is to despawn the player who activated the offzone and spawn him with railgun in a spawnpoint nearby, then kill him 10 seconds later and spawn him without it. Also mind the 5 second delay between dying and spawning.

Re: Request* Royal mod

Posted: 18 Sep 2012, 11:25
by Mikey
Ok. that makes sense. Maybe there is some other bonus that could be applied, like full health restore or add an exra ammo slot to the ammo recharge ?

Re: Request* Royal mod

Posted: 18 Sep 2012, 11:45
by w1lla
Mikey wrote:Ok. that makes sense. Maybe there is some other bonus that could be applied, like full health restore or add an exra ammo slot to the ammo recharge ?
That however is possible.

Try adding for Health Refilled:

Code: Select all

foreach (Player in Players) {
							Player.Armor = Player.ArmorMax;
						}
On One-hit Wonders:

Code: Select all

foreach(Player in Players) {
							Player.Armor = 100;
						}

Re: Request* Royal mod

Posted: 18 Sep 2012, 16:41
by Awpteamoose
Mikey wrote:Ok. that makes sense. Maybe there is some other bonus that could be applied, like full health restore or add an exra ammo slot to the ammo recharge ?
You can restore health, surely. You can't increase max health or max ammo whil the player is alive though.

Re: Request* Royal mod

Posted: 23 Sep 2012, 00:11
by Mikey
Well I have managed to confirm its possible to increase health, restore health, and increase ammo recharge rate,
But impossible to increase ammo max.
Those possibilities are good enough to make some sort of pole activation bonus.

The next issue;
Is it possible to redefine the setting for point limit to win at the start of each map ? Something like 100 + (5 per player) ? I am having troubles with this.

Re: Request* Royal mod

Posted: 23 Sep 2012, 21:07
by w1lla
Tried this:

Code: Select all

#Const C_RocketAmmoMax				3	///< Rocket ammo max

Code: Select all

foreach (Player in Players) {	
			if (Player.SpawnStatus != CSmPlayer::ESpawnStatus::NotSpawned) continue;
			SetPlayerAmmoMax(Player, CSmMode::EWeapon::Rocket, C_RocketAmmoMax);

Re: Request* Royal mod

Posted: 23 Sep 2012, 21:19
by mattw_cstrfan
He's talking about increasing the ammo max as a bonus for capturing the pole. Obviously that isn't possible given the current known restrictions in ManiaScripting.

Re: Request* Royal mod

Posted: 24 Sep 2012, 00:12
by Awpteamoose
Mikey wrote:The next issue;
Is it possible to redefine the setting for point limit to win at the start of each map ? Something like 100 + (5 per player) ? I am having troubles with this.
Should be easily possible.

Re: Request* Royal mod

Posted: 03 Oct 2012, 13:37
by alividerci
hi all, i am trying modify mode SpeedBall(helthbar change when you get a ball and a lot of speed regen weapon, but dont working SetPlayerAmmoMax, when you get a ball, appears error and you respawing again) what's up :?