Forum

> > CS2D > General > Manual spawnobject command
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Manual spawnobject command

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Manual spawnobject command

Informatixa
User Off Offline

Zitieren
Categories
     server

Parameters
     - typ (1-X): object type
     - x (0-X): x pos in tiles (depending on type)
     - y (0-X): y pos in tiles (depending on type)
     - rot (0-360): rotation
     - mode (0-X): object mode
     - team (0-X): object team (0=neutral, 1=T, 2=CT)
     - player (0-X): player (creator)

Info
     Create an object (as server only). Objects are buildings, mines, portals etc.

     Values depend on the type of the object.
     
     Object type:
          - 1: Barricade
          - 2: Barbed Wire
          - 3: Wall I
          - 4: Wall II
          - 5: Wall III
          - 6: Gate Field
          - 7: Dispenser
          - 8: Turret
          - 9: Supply
               Object mode:
                    - 1: HE
                    - 2: Kevlar+Helm
                    - 3: XM1014
                    - 4: P90
                    - 5: M4A1
                    - 6: AWP
          - 10: Construction Site
          - 11: Dual Turret
          - 12: Triple Turret
          - 13: Teleporter Entrance
          - 14: Teleporter Exit
          - 15: Super Supply
               Object mode:
                    - 1: HE
                    - 2: Kevlar+Helm
                    - 3: XM1014
                    - 4: P90
                    - 5: M4A1
                    - 6: AWP
                    - 7: Armor
                    - 8: Molotov Cocktail
          - 20: Mine
          - 21: Laser Mine
               Rotation:
                    - 0: Up
                    - 90: Right
                    - 180: Down
                    - 270: Left
                    - 360: Up
          - 22: Portal Red
          - 23: Portal Blue

     Object Team:
          - 0: Neutral
          - 1: Terrorist
          - 2: Counster-Terrorist

     Player:
          - 0: Server
          - 1-X: Player ID
11× editiert, zuletzt 03.12.11 12:27:54

alt Re: Manual spawnobject command

Zune5
COMMUNITY BANNED Off Offline

Zitieren
Wow, how come I didn't think of that before?

Is mode the HEs, Kevlars for the Supply Building?
If so, then....

alt Re: Manual spawnobject command

Informatixa
User Off Offline

Zitieren
Zune5 hat geschrieben
Wow, how come I didn't think of that before?

Is mode the HEs, Kevlars for the Supply Building?
If so, then....


Example :
spawnobject 9 x y 0 1 team player     --Supply: HE
spawnobject 9 x y 0 2 team player     --Supply: Kevlar+Helm
spawnobject 9 x y 0 5 team player     --Supply: M4A1

MiroslavR hat geschrieben
I think x, y are always tile positions and not pixel ones.


http://www.cs2d.com/help.php?cat=all&cmd=spawnobject#cmd
1× editiert, zuletzt 03.07.09 21:51:02

alt Re: Manual spawnobject command

LilCoder
BANNED Off Offline

Zitieren
MiroslavR hat geschrieben
@ EuropeGamerz
Every building uses tile x, y at the moment. You can check it...


If you want to have it at the actual x and y, multiply tile values with 32
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht