Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The question of SpawnModel
#1
Rainbow 
How to rotate the model by 90%?

Code:
if (map == "mp_bootleg")
            {


                Entity w1 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 0.125f));
                Entity w2 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 25.125f));
                Entity w3 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 50.125f));
                Entity w4 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(-948.9911f, -1846.833f, 75.125f));

                Entity w5 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5710.868f, 406.125f));
                Entity w6 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5681.868f, 406.125f));
                Entity w7 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5651.868f, 406.125f));
                Entity w8 = SpawnModel("script_model", "com_plasticcase_trap_friendly", new Vector(601.113f, 5621.868f, 406.125f));

                Extensions.CloneBrushModelToScriptModel(w1, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w2, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w3, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w4, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w5, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w6, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w7, Extensions.FindAirdropCrateCollisionId());
                Extensions.CloneBrushModelToScriptModel(w8, Extensions.FindAirdropCrateCollisionId());
            }

Need rotate model Entity w1-4 by 90%
[Image: 77c85afda648.gif]
Reply

#2
i don't think you can yet.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#3
@master131 made function and I'm using it, I'll ask him if he will allow me to release it
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
(01-05-2013, 21:49)SailorMoon Wrote: @master131 made function and I'm using it, I'll ask him if he will allow me to release it

You didn't think to ask before, like only you would want it.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#5
(01-05-2013, 21:52)hillbilly Wrote:
(01-05-2013, 21:49)SailorMoon Wrote: @master131 made function and I'm using it, I'll ask him if he will allow me to release it

You didn't think to ask before, like only you would want it.

Dumb Bitch I'm not alex
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#6
(01-06-2013, 15:36)SailorMoon Wrote:
(01-05-2013, 21:52)hillbilly Wrote:
(01-05-2013, 21:49)SailorMoon Wrote: @master131 made function and I'm using it, I'll ask him if he will allow me to release it

You didn't think to ask before, like only you would want it.

Dumb Bitch I'm not alex

This Is Alex! Kill him!!! Big Grin
Reply

#7
dumb bitch haha how quaint you are with your childish attempts at being abusive.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

Reply

#8
(01-06-2013, 16:32)[Z00MBY] Alex Wrote:
(01-06-2013, 15:36)SailorMoon Wrote:
(01-05-2013, 21:52)hillbilly Wrote:
(01-05-2013, 21:49)SailorMoon Wrote: @master131 made function and I'm using it, I'll ask him if he will allow me to release it

You didn't think to ask before, like only you would want it.

Dumb Bitch I'm not alex

This Is Alex! Kill him!!! Big Grin

LOL
[Image: 77c85afda648.gif]
Reply

#9
(01-06-2013, 16:32)[Z00MBY] Alex Wrote: This Is Alex! Kill him!!! Big Grin

If someone ever got the opportunity to do it, take your chance, you won't get another one. Troll

Anyway the function is released

http://www.itsmods.com/forum/Thread-Rele...sions.html

CSHARP Code
  1. public override void OnPlayerSpawned(ServerClient Client)
  2. {
  3. // Spawn a care package with a collision, making it solid.
  4. var origin = new Vector(Client.OriginX, Client.OriginY, Client.OriginZ);
  5. Entity ent = SpawnModel("script_model", "com_plasticcase_green_big_us_dirt", origin);
  6. Extensions.CloneBrushModelToScriptModel(ent, Extensions.FindAirdropCrateCollisionId());
  7.  
  8. // Rotate the care package 90 degrees.
  9. Vector angles = Extensions.GetAngles(ent);
  10. angles.Y += 90;
  11. Extensions.SetAngles(ent, angles);
  12. }

I think you know how it works.
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply

#10
(01-06-2013, 17:45)99IRock Wrote:
(01-06-2013, 16:32)[Z00MBY] Alex Wrote: This Is Alex! Kill him!!! Big Grin

If someone ever got the opportunity to do it, take your chance, you won't get another one. Troll

Anyway the function is released

http://www.itsmods.com/forum/Thread-Rele...sions.html

CSHARP Code
  1. public override void OnPlayerSpawned(ServerClient Client)
  2. {
  3. // Spawn a care package with a collision, making it solid.
  4. var origin = new Vector(Client.OriginX, Client.OriginY, Client.OriginZ);
  5. Entity ent = SpawnModel("script_model", "com_plasticcase_green_big_us_dirt", origin);
  6. Extensions.CloneBrushModelToScriptModel(ent, Extensions.FindAirdropCrateCollisionId());
  7.  
  8. // Rotate the care package 90 degrees.
  9. Vector angles = Extensions.GetAngles(ent);
  10. angles.Y += 90;
  11. Extensions.SetAngles(ent, angles);
  12. }

I think you know how it works.

Thanks
[Image: 77c85afda648.gif]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question Help Mw2 weapon skin question FroxIVx4 1 2,951 10-13-2013, 16:54
Last Post: hmann
Rainbow please help me = question's clacki 1 2,374 09-24-2013, 15:22
Last Post: OzonE
  [Request] Might be a silly question... regarding SetPlayerData camxxcore 4 3,899 08-10-2013, 21:50
Last Post: camxxcore
  A question about the Call of Duty Black Ops king_dom 1 3,705 07-08-2013, 05:26
Last Post: DidUknowiPwn
  Help Mw2 weapon skin question FroxIVx4 1 2,921 07-06-2013, 19:22
Last Post: surtek
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,541 06-04-2013, 01:54
Last Post: rotceh_dnih
  bot question meisking 1 2,047 04-13-2013, 11:02
Last Post: SuperNovaAO
  Help [QUESTION][IDEA] Invisible Wall 99IRock 8 5,495 03-03-2013, 14:37
Last Post: Nekochan
Wink Help question [HARD] Tony. 12 7,975 03-02-2013, 22:54
Last Post: JariZ
  A Question supernuke 2 2,281 02-22-2013, 15:45
Last Post: supernuke

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.