Request* Royal mod

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
Mikey
Posts: 212
Joined: 16 Jun 2010, 01:22
Location: Down Under

Request* Royal mod

Post 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
User avatar
Awpteamoose
Posts: 76
Joined: 12 Jul 2012, 20:27

Re: Request* Royal mod

Post 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.
Mikey
Posts: 212
Joined: 16 Jun 2010, 01:22
Location: Down Under

Re: Request* Royal mod

Post 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 ?
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Request* Royal mod

Post 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;
						}
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
Awpteamoose
Posts: 76
Joined: 12 Jul 2012, 20:27

Re: Request* Royal mod

Post 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.
Mikey
Posts: 212
Joined: 16 Jun 2010, 01:22
Location: Down Under

Re: Request* Royal mod

Post 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.
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Request* Royal mod

Post 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);
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
mattw_cstrfan
Posts: 29
Joined: 14 Sep 2011, 14:13

Re: Request* Royal mod

Post 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.
User avatar
Awpteamoose
Posts: 76
Joined: 12 Jul 2012, 20:27

Re: Request* Royal mod

Post 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.
User avatar
alividerci
Posts: 363
Joined: 11 Feb 2012, 07:03

Re: Request* Royal mod

Post 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 :?
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 1 guest