Blockland Forums > Suggestions & Requests
Petition to make VCE Default
Zeblote:
--- Quote from: Mr.Noßody on January 24, 2013, 06:08:03 PM ---Can you get out of it without closing the game?
I call that a crash. The game doesn't shut down so its technically not called a "crash".
I find calling it a crash easier than saying "It freezes your game and you can't stop it."
Stop being a nitpicker.
--- End quote ---
It also doesn't freeze anything. What you see is the effect of deleting someones controlobject.
Just open the escape menu, start a minigame and you're respawned.
Zeblote:
--- Quote from: Demian on January 25, 2013, 03:33:56 AM ---Holy stuff what. I had no idea you could change the player's health by just creating a variable named "health". That is ridiculously stupid. The event essentially freezes the client, you die and can't respawn and the world is no longer rendered. (Player is deleted?) Admins can respawn by dropping player at camera.
--- End quote ---
Here, I copied all "variable replacers" that will change a variable on the object if changed.
--- Code: (Event_Variables/server.cs) --- registerSpecialVar(GameConnection,"clanPrefix","%this.clanPrefix","setClanPrefix");
registerSpecialVar(GameConnection,"clanSuffix","%this.clanSuffix","setClanSuffix");
registerSpecialVar(GameConnection,"score","%this.score","setScore");
registerSpecialVar(GameConnection,"decal","%this.decalName","setDecalName");
registerSpecialVar(GameConnection,"face","%this.faceName","setFaceName");
registerSpecialVar(Player,"damage","%this.getDamageLevel()","setDamage");
registerSpecialVar(Player,"energy","%this.getEnergyLevel()","setEnergy");
registerSpecialVar(Player,"health","%this.getDatablock().maxDamage - %this.getDamageLevel()","setHealth");
registerSpecialVar(Player,"vel","getWords(%this.getVelocity(),0,2)","setVelocity");
registerSpecialVar(Player,"currentitem","%this.tool[%this.currTool].uiName","setCurrentItem");
registerSpecialVar(Player,"item1","%this.tool[0].uiName","setItem",0);
registerSpecialVar(Player,"item2","%this.tool[1].uiName","setItem",1);
registerSpecialVar(Player,"item3","%this.tool[2].uiName","setItem",2);
registerSpecialVar(Player,"item4","%this.tool[3].uiName","setItem",3);
registerSpecialVar(Player,"item5","%this.tool[4].uiName","setItem",4);
registerSpecialVar(fxDTSbrick,"colorid","%this.getColorID()","setColor");
registerSpecialVar(fxDTSbrick,"printcount","%this.printcount","setPrintCount");
registerSpecialVar(fxDTSbrick,"printname","%this.getPrintName()","setPrintName");
registerSpecialVar(fxDTSbrick,"name","%this.getBrickName()","setBrickName");
registerSpecialVar(fxDTSbrick,"colorfxid","%this.getColorFXID()","setColorFX");
registerSpecialVar(fxDTSbrick,"printid","%this.printid","setPrint");
registerSpecialVar(fxDTSbrick,"shapefxid","%this.getShapeFXID()","setShapeFX");
registerSpecialVar(Vehicle,"damage","%this.getDamageLevel()","setDamage");
registerSpecialVar(Vehicle,"health","%this.getDatablock().maxDamage - %this.getDamageLevel()","setHealth");
registerSpecialVar(Vehicle,"vel","%this.getVelocity()","setVelocity");
--- End code ---
The first argument is the class it can be used for, the second the vce variable you have to change, the third where it will get it's info if used in VCE_ifValue, the fourth is what it will do if you change the vce variable
Port:
--- Quote from: Zeblote on January 25, 2013, 06:48:55 AM ---It also doesn't freeze anything. What you see is the effect of deleting someones controlobject.
--- End quote ---
It doesn't delete anything.
--- Quote from: Port on January 24, 2013, 02:00:03 AM ---If setting health uses setDamageLevel, that would just leave the client controlling a player in the "disabled" state, not deleting anything. Although yes, controlling a disabled player will cause your view to mess up since they have no POV.
--- End quote ---
Zeblote:
--- Quote from: Port on January 25, 2013, 07:00:59 AM ---It doesn't delete anything.
--- End quote ---
Oh
But the player plays the death animation, then after 5 seconds it does the POOF sound and emitter and is gone?
Port:
--- Quote from: Zeblote on January 25, 2013, 07:06:11 AM ---Oh
But the player plays the death animation, then after 5 seconds it does the POOF sound and emitter and is gone?
--- End quote ---
The player switches to the Disabled state (which does not have a POV) while the client is still controlling it. Yes, the disabled player ("corpse") would also get deleted after 5 seconds, but that's not what causes the "no rendering" glitch. That happens whenever your control object does not have a POV.