AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question regarding entities w/ player model (https://forums.alliedmods.net/showthread.php?t=2880)

Mugwump 06-19-2004 13:47

Question regarding entities w/ player model
 
Goal: Create a new entity w/ one of the CS player models that does nothing but stand there, a simulated wax figurine.

Before attempting this I had no experience with using create_entity() or any of the other entity-based functions, so please forgive my n00bism. After searching through the forums I decided to use the Entcopy example that was recently posted to give me a starting basis.

I am able to create the entity, been testing with the gsg9 model from CS.

Problem: The model spawns in mid-run position, looking rather silly. Is there a way to set the posture of the model, or pose it in one of ots specific positions, or even set it to be playing one of its animations (like idle) ?

Any help would be great, I'm getting flustered and cannot seem to find any examples of this that help.

Thank you.
Mugwump

PM 06-20-2004 06:44

you can play around with entity_set_int(EV_INT_sequence, ...). That specifies the current animation. It is a number, so you will have to search a bit :}

Mugwump 06-20-2004 23:03

Thats exactly what I was looking for, thank you...

Now if only I could figure out how to make the model face a specific direction, they all seem to spawn facing one direction...

Thanks PM,

Mugwump

kingpin 06-20-2004 23:04

try a superhero called beyonder... he creates these dummy chars.

Mugwump 06-21-2004 13:28

Great suggestion Kingpin, looking at that source will be very helpful, thank you.

Mugwump

jeremythescriptzor 08-15-2004 14:55

?
 
could you post this plugin please im looking for help in the same area

Ingram 08-15-2004 17:08

1 Attachment(s)
just look at a player and type this in console, it tells u all the ent vars a player uses. U can maybe workout from there which are important and which r not.

Votorx 08-15-2004 17:11

What would we put in for the parameter. How do we know which ent # to specify?

Ingram 08-15-2004 17:20

the parameter is not required, if the number u entered isn't a valid ent (or not there), it just uses the ent u r looking at. If ur not looking at an ent, it will tell u a whole lot of nothing.

ents numbers are basically greater than 1 (0 = worldspawn?). I believe there is a maximum of just over 1000 ents. 1024 makes sense, but i've also heard 1065. There won't usually be more than 300 ents on a map (from my experience).

Votorx 08-15-2004 22:16

I see, lol very good, thanks for this plugin. From what I can tell the first few ent numbers currespond with the players in the game, in order in which they joined. net name turns out to be their name in the game, lol thanks a hell of alot, this will help me out enourmasly


All times are GMT -4. The time now is 14:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.