Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // visual attachment stuff (currently crashes)
- void() body_think =
- {
- self.think = self.frame = self.parent.frame; // bodies frame is "parents" frame
- self.nextthink = time + 0.1; // think every 0.1 ticks
- };
- void() body =
- {
- self.pbody = spawn (); // spawn the body
- self.pbody.parent = self ; // the bodies owner is the player
- setmodel (self.pbody, "progs/body.mdl"); // he will get the player body model
- setattachment (self.pbody, self.pbody.parent, ""); // attach the body model to "parent"
- self.pbody.think = body_think; // make the body think
- self.pbody.nextthink = time + 0.1; // it thinks every 0.1 ticks
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement