Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <sourcemod>
- #include <sdktools>
- #include <sdkhooks>
- public OnPluginStart()
- {
- RegConsoleCmd("sm_ac", cA);
- }
- public Action:cA(i, args)
- {
- static iEntity;
- iEntity = CreateEntityByName("point_viewcontrol_survivor");
- DispatchSpawn(iEntity);
- ActivateEntity(iEntity);
- float a[3], v[3];
- GetClientEyeAngles(i, a);
- GetEntPropVector(i, Prop_Send, "m_vecOrigin", v);
- v[2] += 90.0;
- v[1] += -25.0;
- v[0] -= 25.0;
- TeleportEntity(iEntity, v, a, NULL_VECTOR);
- AcceptEntityInput(iEntity, "SetParent", i);
- AcceptEntityInput(iEntity, "SetParentAttachment");
- }
Advertisement
Add Comment
Please, Sign In to add comment