AlliedModders

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

rack 06-29-2004 01:20

Noclip question
 
is there any way of making some kind of noclip that only affects players v.s. players and not players v.s. walls/floor etc.?

BAILOPAN 06-29-2004 01:25

Yes, check const.h for solidity and movement constants... I'm sure it's possible

Ryan 06-29-2004 01:44

I have tried to do this many times in my War3 mod for undead so they don't get stuck behind slower players, and have had no luck. The players may have their solid types set to passable, but their min/max values (hit boxes) still get players caught up on them. At least I think this is what is causing the problems.

I'm still experimenting, though.

rack 06-29-2004 11:10

ok... thanks!
I'll play around with it.
Ryan: what have you managed to do? and what did'nt work?
I don't quiet understand.
Since I want to use this for a jump-server so everyone can jump in their own speed without blocking each other I'm not sure the hitboxed matter.

rack 06-29-2004 22:23

Quote:

Originally Posted by BAILOPAN
Yes, check const.h for solidity and movement constants... I'm sure it's possible

what should I look for?
and @ what level will the code be? a C/C++ module/dll or sma/amx/SMALL?

i've been writing some small-scripts and i'm used to c/c++ too but i'm not used to read others code... :(

edit:
as I understand it i'll write a metamod plugin that change those settings right?

Ryan 06-30-2004 04:07

no you can simply use the engine include to change a number of entity properties.

look at the entity_set_ and entity_get_ functions.

the properties you are looking to change are these..

Code:
#define SOLID_NOT       0       /* no interaction with other objects */ #define SOLID_TRIGGER       1       /* touch on edge, but not blocking */ #define SOLID_BBOX      2       /* touch on edge, block */ #define SOLID_SLIDEBOX      3       /* touch on edge, but not an onground */ #define SOLID_BSP       4       /* bsp clip, touch on edge, block */ #define MOVETYPE_NONE       0       /* never moves */ #define MOVETYPE_ANGLENOCLIP    1 #define MOVETYPE_ANGLECLIP  2 #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) */

rack 06-30-2004 05:57

thx! :D
i'll play around a little then!

rack 06-30-2004 10:32

I got it to work, but no hitboxes.
but that does'nt matter on jump-maps.

The only problem I have now is that I cant set it on players when they connect, and it seems to reset when a new round starts.


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

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