News:

Come Chat with us live! Learn how HERE!

Main Menu

About invisibility

Started by ACKMAN, November 15, 2008, 05:29:56 PM

ACKMAN

I don't know but... is there any way to make a player invisible?

Amanieu

Add SVF_SINGLECLIENT to ent->r.svFlags and set ent->r.singleClient to his client #
Quote
< kevlarman> zakk is getting his patches from shady frenchmen on irc
< kevlarman> this can't be a good sign :P


Hendrich

QuoteI love you

Everybody does. Amanieu is a hard-working modder who always contributes to the forum. :)

Btw, can you tell us why you would want to make players invivisble ACKMAN? Its sounds like you hatching up a fun idea.

ACKMAN

Instagib mod, when on a killing spree you get random powerup... god mode... invisibility... :D

Hendrich

Well doesn't that just sound kick ass?  ;D

Are you going to release the mod/QVM on the forum or what server will the mod be on?

ACKMAN

Well... the original creator of the mod is Archangel... he didnt share source so i coded mod myself... now i just add
Quote from: Hendrich on November 15, 2008, 07:22:33 PM
kick ass
things to waste time and for fun

So... i dont know if i have to post QVM because Archangel is making the same mod..

your face

Quote from: Hendrich on November 15, 2008, 07:08:45 PM
QuoteI love you

Everybody does. Amanieu is a hard-working modder who always contributes to the forum. :)


except some of mg ;D
Quote from: dolby on February 19, 2003, 06:44:44 PM
spam spam spam, waste waste waste!

kevlarman

Quote from: your face on November 15, 2008, 09:52:47 PM
Quote from: Hendrich on November 15, 2008, 07:08:45 PM
QuoteI love you

Everybody does. Amanieu is a hard-working modder who always contributes to the forum. :)


except some of mg ;D
just because some of us don't like some things amanieu is doing doesn't mean we don't like amanieu, i would say that in general it's the opposite of the truth (though i can't speak for everyone).
Quote from: Asvarox link=topic=8622.msg169333#msg169333Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Archangel

Quote from: ACKMAN on November 15, 2008, 08:14:59 PM
Well... the original creator of the mod is Archangel... he didnt share source so i coded mod myself... now i just add
Quote from: Hendrich on November 15, 2008, 07:22:33 PM
kick ass
things to waste time and for fun

So... i dont know if i have to post QVM because Archangel is making the same mod..

I don't mind, I don't really have the time to work on mods.

ACKMAN

#10
Anyways... you can play my mod in TremSpain server. Just use /callvote instagib and the next match will be instagib.

[EDIT]Btw.. we are playing 27 in TSpain at the moment... instagib madness xD ill upload demo

Roanoke

Quote from: Amanieu on November 15, 2008, 05:33:47 PM
Add SVF_SINGLECLIENT to ent->r.svFlags and set ent->r.singleClient to his client #
Sorry if this sounds noobish but... what file?

Archangel


Dinyi

What would you do if you wanted to make this into a command (!invisible (name|slot#) + !visible (name|slot#)
Sorry if this is newbish... I just started coding :/

Syntac

To create the admin command, you would need to mess around in g_admin.c and g_admin.h (probably some other files as well, but I'm too wasted to remember them).

ACKMAN

  vic->r.svFlags ^= SVF_SINGLECLIENT;
  if( !( vic->r.svFlags & SVF_SINGLECLIENT ) )
  {
ADMP( va("^3!invisible: ^7invisible mode has been ^1disable^7 for %s^7\n", vic->client->pers.netname ));
  }
  else
  {
ADMP( va("^3!invisible: ^7invisible mode has been ^2enabled^7 for %s^7\n", vic->client->pers.netname ));
vic->r.singleClient = vic->client - level.clients;
  }
  return qtrue;


???

mooseberry

Just saying, it should say invisibility has been disabled.
Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

मैं हिन्दी का समर्थन

~Mooseberry.

ACKMAN


==Troy==

you can also use NO_DRAW flag.
Player will still be visible on a radar and you will hear his steps, but he will be visually invisibile.

the single client flag prevents the entity from being sent to the other players, which completely screws up client prediction if they are going to collide. Especially makes it unplayable for aliens.

ACKMAN

#19
Wut flag is that, i didnt know about it

==Troy==

sorry, I was wrong, it is EF_NODRAW

client->ps.eFlags &= ~EF_NODRAW;   << invisible client
client->ps.eFlags |= EF_NODRAW;  << visible client