AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Semiclip (https://forums.alliedmods.net/showthread.php?t=147800)

Larcyn 01-14-2011 09:18

Semiclip
 
Hello, i need some help to get semiclip to a plugin i'm making, this is the second plugin I make and i'm not super good at the moment, and need some help.

This plugins i got currently does this:

when i write /spec it goes to spec, i become invis and get godmode.
How can i add so spectators can go through everyone else (Semiclip) ?
Awesome if someone help me ;)!

fireattack 01-14-2011 10:04

Re: Semiclip
 
Wtf?, If you change to spec you don't need glow or godmode.

Explain better please.

Flipper_SPb 01-14-2011 10:10

Re: Semiclip
 
You need to make player not solid (no clip)?

set_pev(id, pev_solid, SOLID_NOT)

Elusive138 01-14-2011 10:17

Re: Semiclip
 
Quote:

Originally Posted by Flipper_SPb (Post 1393382)
You need to make player not solid (no clip)?

set_pev(id, pev_solid, SOLID_NOT)

Quote:

Originally Posted by hlsdk
// SOLID only effects OTHER entities colliding with this one when they move - UGH!



Try one of these?
Code:

// pev(entity, pev_movetype) values
#define    MOVETYPE_NONE                  0          // Never moves
#define    MOVETYPE_WALK                  3          // Player only - moving on the ground
#define    MOVETYPE_STEP                  4          // Gravity, special edge handling -- monsters use this
#define    MOVETYPE_FLY                    5          // No gravity, but still collides with stuff
#define    MOVETYPE_TOSS                  6          // Gravity/Collisions
#define    MOVETYPE_PUSH                  7          // No clip to world, push and crush
#define    MOVETYPE_NOCLIP                8          // No gravity, no collisions, still do velocity/avelocity
#define    MOVETYPE_FLYMISSILE            9          // Extra size to monsters
#define    MOVETYPE_BOUNCE                10          // Just like Toss, but reflect velocity when contacting surfaces
#define    MOVETYPE_BOUNCEMISSILE          11          // Bounce w/o gravity
#define    MOVETYPE_FOLLOW                12          // Track movement of aiment
#define    MOVETYPE_PUSHSTEP              13          // BSP model that needs physics/world collisions (uses nearest hull for world collision)


Flipper_SPb 01-14-2011 11:05

Re: Semiclip
 
PHP Code:

    pev->flags FL_SPECTATOR;
    
pev->solid SOLID_NOT;
    
pev->movetype MOVETYPE_NOCLIP


Larcyn 01-14-2011 14:32

Re: Semiclip
 
I want that the spectator team have Semiclip through, terrorists, counter terrorists, and other spectators.


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

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