Author Topic: TDM Spawing System  (Read 1287 times)

You may have guessed; im a n00b, what is VCE?
http://forum.blockland.us/index.php?topic=74148.0

They can be very complicated, and should generally not be enabled on any server where people can event freely, as they can be abused. You should probably stay away from them for a while and just use some sort of building to shield from spawn-killers.

MoveToBrick is not default. SetPlayerTransform was made first.

ohhh

lol

Why does nobody use those teledoors anymore?

Why does nobody use those teledoors anymore?

They were a good addition.

Why does nobody use those teledoors anymore?

Well, lets see, a teledoor allows for people on the battlefield to enter the spawn room.  Not very good, don't you think?

If you decide to use VCE, here ya go

3 spawn locations and a brick in the spawn room for teleporting.

Spawn button
Code: [Select]
[0] [Onactivate] [Client] [VCE_Modvariable] [Spawn] [Random]
[1] [Onactivate] [Client] [VCE_Ifvariable] [Spawn] [<] [.33] [2 3]
[2] [Onvariabletrue] [Namedbrick] [Spawn1] [setplayertransform] [ ] [ ]
[3] [Onvariablefalse] [Client] [VCE_Ifvariable] [Spawn] [>=] [.33] [4 4]
[4] [Onvariabletrue] [Client] [VCE_Ifvariable] [Spawn] [<=] [.66] [5 6]
[5] [Onvariabletrue] [Namedbrick] [Spawn2] [setplayertransform] [ ] [ ]
[6] [Onvariablefalse] [Namedbrick] [Spawn3] [setplayertransform] [ ] [ ]

Easy as that.

Well, lets see, a teledoor allows for people on the battlefield to enter the spawn room.  Not very good, don't you think?

If you decide to use VCE, here ya go

3 spawn locations and a brick in the spawn room for teleporting.


Spawn button
Code: [Select]
[0] [Onactivate] [Client] [VCE_Modvariable] [Spawn] [Random]
[1] [Onactivate] [Client] [VCE_Ifvariable] [Spawn] [<] [.33] [2 3]
[2] [Onvariabletrue] [Namedbrick] [Spawn1] [setplayertransform] [ ] [ ]

the main problem is I downloaded all the VCE add-ons and i don't have "VCE_Modvariable"
[3] [Onvariablefalse] [Client] [VCE_Ifvariable] [Spawn] [>=] [.33] [4 4]
[4] [Onvariabletrue] [Client] [VCE_Ifvariable] [Spawn] [<=] [.66] [5 6]
[5] [Onvariabletrue] [Namedbrick] [Spawn2] [setplayertransform] [ ] [ ]
[6] [Onvariablefalse] [Namedbrick] [Spawn3] [setplayertransform] [ ] [ ]

Easy as that.

The main problem is I downloaded all the VCE add-ons and i don't have "VCE_Modvariable"

This topic literary makes me cry, not because OP, but because what you guys can('t) think of.
Screw VCE, use this: http://forum.returntoblockland.com/dlm/viewFile.php?id=2301
Disable player DMG when players spawn, and enable when they move to the battlefield.
Also
Well, lets see, a teledoor allows for people on the battlefield to enter the spawn room.  Not very good, don't you think?

-totallyunnecessarystuff-
No. Turn collision off on the exit teledoor (not the one in spawn room) and viola: people can't teleport with it.
Make sure there is a wall behind it or players may glitch out.
Also for weapon buying system:
It's only possible with VCE and reques event_additem for giving items to players,  but it's fairly easy.

Code: [Select]
On Active => Client => VCE_IfVariable => <var:cl:score> == <cost>
On variable true => player => add item => <item>
On variable true => client => Centerprint => <color:ffffff> You bought a(n) <item>
On variable true => client => IncScore => -<cost>
On variable false => client => Centerprint => You don't have enught points to buy this <item>

I think that's it. Replace <item> with the item's name you want players to buy, and <cost> should be self-explanatory.

Also most of this can be found on the forum; Next time use the search button ;P
« Last Edit: September 12, 2012, 11:44:31 AM by SgtDaemon »