1 registered members (TipmyPip),
18,388
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Making a Board
[Re: rtsgamer706]
#416360
01/30/13 16:04
01/30/13 16:04
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
First create a quadratic model in med. Then you can use a simple loop like the following one:
fixed offset = 16; // your block width here
fixed x,y;
for (x = -3; x < 4; x++)
for (y = -3; y < 4; y++)
ent_create("yourmodel.mdl",vector(x * offset,y * offset,0),NULL);
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Making a Board
[Re: rtsgamer706]
#416366
01/30/13 16:20
01/30/13 16:20
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You can set it in MED yourself. The model can be dead simple. Four vertices and two faces are sufficient for this purpose. Just move the four vertices to appropriate coordinates. If you want to find out by code you can create a single temporary entity with the corresponding file, use c_updatehull and then read the value. The width should correspond to ent.max_x - ent.min_x. ent.max_y - ent.min_y should give you the same value if your entity is really quadratic. http://www.conitec.net/beta/ac_updatehull.htm
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Making a Board
[Re: rtsgamer706]
#416368
01/30/13 17:12
01/30/13 17:12
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
I forgot the action parameter on ent_create. I corrected the code in my above post.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Making a Board
[Re: Uhrwerk]
#416393
01/30/13 22:26
01/30/13 22:26
|
Joined: Dec 2009
Posts: 361
rtsgamer706
OP
Senior Member
|
OP
Senior Member
Joined: Dec 2009
Posts: 361
|
I noticed that before It seems to be having the issue with this:
|
|
|
Re: Making a Board
[Re: rtsgamer706]
#416394
01/30/13 22:38
01/30/13 22:38
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
There is a semicolon missing behind the 4 ... come on ...
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|