Author Topic: About invisibility  (Read 11463 times)

ACKMAN

  • Posts: 342
  • Turrets: +9/-20
About invisibility
« on: November 15, 2008, 05:29:56 pm »
I don't know but... is there any way to make a player invisible?

Amanieu

  • Posts: 647
  • Turrets: +135/-83
    • Amanieu
Re: About invisibility
« Reply #1 on: November 15, 2008, 05:33:47 pm »
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

ACKMAN

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #2 on: November 15, 2008, 07:05:23 pm »
I love you :D

Hendrich

  • Posts: 898
  • Turrets: +168/-149
    • TremCommands
Re: About invisibility
« Reply #3 on: November 15, 2008, 07:08:45 pm »
Quote
I 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

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #4 on: November 15, 2008, 07:20:30 pm »
Instagib mod, when on a killing spree you get random powerup... god mode... invisibility... :D

Hendrich

  • Posts: 898
  • Turrets: +168/-149
    • TremCommands
Re: About invisibility
« Reply #5 on: November 15, 2008, 07:22:33 pm »
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

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #6 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
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

  • Community Moderators
  • *
  • Posts: 3843
  • Turrets: +116/-420
Re: About invisibility
« Reply #7 on: November 15, 2008, 09:52:47 pm »
Quote
I love you

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


except some of mg ;D
spam spam spam, waste waste waste!

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: About invisibility
« Reply #8 on: November 16, 2008, 12:45:23 am »
Quote
I 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#msg169333
Ok 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

  • Guest
Re: About invisibility
« Reply #9 on: November 16, 2008, 04:09:39 am »
Well... the original creator of the mod is Archangel... he didnt share source so i coded mod myself... now i just add
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

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #10 on: November 16, 2008, 12:16:10 pm »
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
« Last Edit: November 16, 2008, 03:26:56 pm by ACKMAN »

Roanoke

  • Posts: 260
  • Turrets: +20/-22
Re: About invisibility
« Reply #11 on: November 28, 2008, 11:48:37 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

  • Guest
Re: About invisibility
« Reply #12 on: November 29, 2008, 06:25:15 am »
depends where you want it.

Dinyi

  • Posts: 1
  • Turrets: +0/-0
Re: About invisibility
« Reply #13 on: December 05, 2008, 06:14:36 am »
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

  • Posts: 841
  • Turrets: +118/-104
    • Syntac's Stuff
Re: About invisibility
« Reply #14 on: December 06, 2008, 02:49:04 pm »
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

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #15 on: December 06, 2008, 04:05:58 pm »
Code: [Select]
  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

  • Community Moderators
  • *
  • Posts: 4005
  • Turrets: +666/-325
Re: About invisibility
« Reply #16 on: December 07, 2008, 12:07:48 am »
Just saying, it should say invisibility has been disabled.
Bucket: [You hear the distant howl of a coyote losing at Counterstrike.]

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

~Mooseberry.

ACKMAN

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #17 on: December 08, 2008, 03:25:11 pm »
XD oops, thank u

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Re: About invisibility
« Reply #18 on: December 30, 2008, 09:11:20 am »
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

  • Posts: 342
  • Turrets: +9/-20
Re: About invisibility
« Reply #19 on: December 30, 2008, 09:50:15 pm »
Wut flag is that, i didnt know about it
« Last Edit: December 30, 2008, 09:53:32 pm by ACKMAN »

==Troy==

  • Posts: 440
  • Turrets: +65/-67
Re: About invisibility
« Reply #20 on: December 30, 2008, 11:05:07 pm »
sorry, I was wrong, it is EF_NODRAW

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