EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
16000 (15) abilities (15) addon (71) addons (17) admin (348) admins (23) advert (27) adverts (26) afk (17) alerts (12) ammo (25) anti (20) armor (11) auth (16) automatic (15) awp (29) ban (24) ba_jail (34) bhop (45) block (27) bomb (47) bonus (25) boost (21) bot (35) bot-management (20) bots (24) bullet (13) bunnyhop (18) Buy (27) buymenu (13) c4 (12) cash (76) Change (14) chat (75) cheat (15) clan (17) classes (24) color (30) colors (20) command (23) commands (20) config (28) configurable (11) connect (54) counter (11) Counter-Strike-Source (18) CS:S (20) css (3313) custom (13) Damage (48) database (14) dead (19) Deagle (11) death (19) deathmatch (79) deathrun (17) deutsch (13) dice (11) disconnect (24) Dissolve (12) dm (24) dod:s (11) dods (494) download (12) easy (26) effect (14) effects (125) English (16) entity (24) est (12) es_tools (14) Eventscript (12) exploit (11) flashbang (27) français (104) french (36) fun (312) funny (18) Gabeee (11) game (12) gamemode (11) gameplay (175) German (11) give (20) gravity (15) grenade (28) grenades (32) gun (15) GunGame (31) GunGame5 (11) guns (20) Hack (16) headshot (37) health (70) hegrenade (15) help (11) hit (13) hl2dm (432) HP (25) hudhint (11) hungarian (22) info (52) information (17) invisible (11) IP (13) jail (79) jailbreak (14) join (44) jump (19) kick (25) kill (50) kills (23) knife (65) leveling (38) LnD (14) lol (11) magyar (32) management (14) manager (11) mani (16) map (31) map-management (26) maps (17) match (21) Memphis-84 (13) menu (139) message (30) messaging (52) minecraft (12) mod (121) model (18) models (32) modye (16) money (50) motd (13) music (32) mute (20) nades (20) name (15) new (13) noblock (53) orangebox (23) player (46) player-management (31) player-tracking (28) popup (70) prop (13) propmenu (14) props (34) protect (11) protection (31) punish (11) punishment (51) python (79) quake (32) QuakeSounds (12) race (13) races (20) radio (29) random (47) rank (41) rates (15) rcon (12) realism (22) Regeln (22) respawn (67) restrict (40) round (26) rpg (32) rules (60) say (16) score (15) scout (29) Script (25) script-helper (25) scriptpack (33) sdk (171) server (60) server-tools (42) shop (12) showdamage (19) silly (31) simple (31) skin (17) skins (34) slay (13) soccer (14) sound (63) sounds (106) source (13) spanish (18) spawn (81) speed (25) statistics (13) stats (55) status (15) Steam (11) STEAMID (29) Superhero (15) surf (41) Team (29) team-balance (14) teleport (16) text (17) TF2 (142) time (22) timer (15) tools (15) tracers (19) triggers (11) uedi (17) uses_auth (18) vip (23) vote (39) voting (22) war (25) Warcraft (12) warcraft-source (20) wc3 (14) wcs (47) wcs:Python (32) weapon (87) weapons (116) web (16) welcome (12) wuerfeln (11) zm (26) zombie (99) zombiemod (55) zombies (12)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (20) .:modye:. (14) .eMko* (6) 101satoon101 (12) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (9) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) Ayuto (5) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (8) Bioko (10) blackshoxx (9) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (32) cagemonkey (8) capo azzlack (7) captain master (6) carbon-14 (10) CaskioUTF (5) cbirou (15) CbRRR (16) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (10) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) CrAzD (6) craziest (11) dani12356 (12) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (17) Di[M]aN (12) DJ Fire-Black prod (8) DoCky (31) Don (15) dordtcore (9) DragonFreddo (8) Drassil (5) dretax14 (11) Einlanzers (47) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (10) FMIS (5) Franc1sco (17) freddukes (18) Frequency (6) Fugi91 (6) Fulmine (5) G4ME (5) GAMEREN2 (8) german9114 (13) GODJonez (40) GoodfellaDeal (5) Hansi (6) Hisoka (6) HitThePipe (7) HOLLDIDAY (24) Icetouch (6) ichthys (25) Im the new guy (14) iNexus (13) infamous1 (9) isivisi (13) ispaine (7) Jackmaster (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (11) KDBFame (6) L'In20Cible (11) L.P.H (8) Largo Usagi (10) LnD (14) Lobe (11) loKkdoKk (8) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (7) magyar-oneill (9) Matth (7) Mattie (21) mave1993 (5) MBchrono (15) McFly (20) Medda (5) Memphis-84 (15) Messiah93 (19) Mickyy (5) micmacx (6) Mitchell (5) Mixer57 (5) modye (6) Monster_Bitch1 (9) Mordavolt (7) motomoto (10) MrScriptaz (6) mryoung (6) MyTechZone.de (8) Nicolous (23) ojii (31) oliVier (10) Omega68 (6) Omega_K2 (11) Owned|Myself (8) P3N (7) pand3mic (6) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) PixelGamer (7) randomknifer (9) Raptor150 (31) Ratzee (6) ReaCtioN2oo9 (6) RedCliff (5) Rennnyyy (17) revolutionfighters (8) RideGuy (12) Rio (9) Roeliekt (6) roof (16) runamagic (13) Ryezin (5) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (15) sgt.angel (6) Shad0w (11) ShoTaXx# (7) sicilia (7) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) SpeedFreak (9) spoonman184 (10) stabby (22) stas (27) Stirni (6) stonedegg (7) Strontium Dog (30) SumGuy14 (25) SuperDave (49) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (27) TheDonFather (5) theresthatguy (6) Tiny Tod (7) tooshkan4uk (8) Totyahun (9) uedi (38) ultimatebuster (6) Undead (25) usernamesaretaken (15) wanted241 (9) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) Wundermaxe (5) X-Mania (5) XE_ManUp (14) xfalcon61 (5) zSweetXz (5) ZZMatty (6) [Cs]Lord_Inferno2 (11) [DAP]Kickbutt (5) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Author Message
User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4289
Location:
Michigan
 
New postPosted: 2006-05-01, 11:24 pm 
   Post subject: EinsModels

EinsModels v1.0

Requirements:
Eventscripts

Code:
Code:
block load
{
   es_xsetinfo Model_T1 0
   es_xsetinfo Model_T2 0
   es_xsetinfo Model_T3 0
   es_xsetinfo Model_T4 0
   es_xsetinfo Model_CT1 0
   es_xsetinfo Model_CT2 0
   es_xsetinfo Model_CT3 0
   es_xsetinfo Model_CT4 0
   es_xsetinfo Model_Ts 0
   es_xsetinfo Model_CTs 0   
}

event es_map_start
{
   es_xsetinfo Model_T1 0
   es_xsetinfo Model_T2 0
   es_xsetinfo Model_T3 0
   es_xsetinfo Model_T4 0
   es_xsetinfo Model_CT1 0
   es_xsetinfo Model_CT2 0
   es_xsetinfo Model_CT3 0
   es_xsetinfo Model_CT4 0
   es_xsetinfo Model_Ts 0
   es_xsetinfo Model_CTs 0   
}

event player_spawn
{
   es_setinfo models_userid event_var(userid)
   es_setinfo models_team event_var(es_userteam)
   es_xdoblock EinsModels/CheckPlayer
}

block CheckPlayer
{
   es_xsetinfo models_model 0
   es_getplayerprop models_model server_var(models_userid) "CCSPlayer.baseclass.baseclass.baseclass.baseclass.baseclass.baseclass.m_nModelIndex"
   if (server_var(models_team) equalto "2") do
   {
      if (server_var(Model_T1) equalto "0") do
      {
         es_math Model_Ts + 1
         es_setinfo Model_T1 server_var(models_model)
      }
      if (server_var(Model_T1) notequalto "0") do
      {
         if (server_var(Model_T1) notequalto server_var(models_model)) do
         {
            if (server_var(Model_T2) equalto "0") do
            {
               es_math Model_Ts + 1
               es_setinfo Model_T2 server_var(models_model)
            }
            if (server_var(Model_T2) notequalto "0") do
            {
               if (server_var(Model_T2) notequalto server_var(models_model)) do
               {
                  if (server_var(Model_T3) equalto "0") do
                  {
                     es_math Model_Ts + 1
                     es_setinfo Model_T3 server_var(models_model)
                  }
                  if (server_var(Model_T3) notequalto "0") do
                  {
                     if (server_var(Model_T3) notequalto server_var(models_model)) do
                     {
                        if (server_var(Model_T3) equalto "0") do
                        {
                           es_math Model_Ts + 1
                           es_setinfo Model_T3 server_var(models_model)
                        }
                        if (server_var(Model_T3) notequalto "0") do
                        {
                           if (server_var(Model_T3) notequalto server_var(models_model)) do
                           {
                              if (server_var(Model_T4) equalto "0") do
                              {
                                 es_math Model_Ts + 1
                                 es_setinfo Model_T4 server_var(models_model)
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
   if (server_var(models_team) equalto "3") do
   {
      if (server_var(Model_CT1) equalto "0") do
      {
         es_math Model_CTs + 1
         es_setinfo Model_CT1 server_var(models_model)
      }
      if (server_var(Model_CT1) notequalto "0") do
      {
         if (server_var(Model_CT1) notequalto server_var(models_model)) do
         {
            if (server_var(Model_CT2) equalto "0") do
            {
               es_math Model_CTs + 1
               es_setinfo Model_CT2 server_var(models_model)
            }
            if (server_var(Model_CT2) notequalto "0") do
            {
               if (server_var(Model_CT2) notequalto server_var(models_model)) do
               {
                  if (server_var(Model_CT3) equalto "0") do
                  {
                     es_math Model_CTs + 1
                     es_setinfo Model_CT3 server_var(models_model)
                  }
                  if (server_var(Model_CT3) notequalto "0") do
                  {
                     if (server_var(Model_CT3) notequalto server_var(models_model)) do
                     {
                        if (server_var(Model_CT3) equalto "0") do
                        {
                           es_math Model_CTs + 1
                           es_setinfo Model_CT3 server_var(models_model)
                        }
                        if (server_var(Model_CT3) notequalto "0") do
                        {
                           if (server_var(Model_CT3) notequalto server_var(models_model)) do
                           {
                              if (server_var(Model_CT4) equalto "0") do
                              {
                                 es_math Model_CTs + 1
                                 es_setinfo Model_CT4 server_var(models_model)
                              }
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
}


Features:
Allows you to see the current model indexes:
Quote:
Model_Ts - Stores the # of Models stored for Terrorists
Model_cTs - Stores the # of Models stored for Counter-Terrorists
Model_T1 - Stores the value of the 1st T Model (if there is one)
Model_T2 - Stores the value of the 2nd T Model (if there is one)
Model_T3 - Stores the value of the 3rd T Model (if there is one)
Model_T4 - Stores the value of the 4th T Model (if there is one)
Model_CT1 - Stores the value of the 1st CT Model (if there is one)
Model_CT2 - Stores the value of the 2nd CT Model (if there is one)
Model_CT3 - Stores the value of the 3rd CT Model (if there is one)
Model_CT4 - Stores the value of the 4th CT Model (if there is one)


Example Usage:
es_EinsSpy.txt
Code:
event player_say
{
   if (event_var(text) equalto "!spy") do
   {
      if (event_var(es_userteam) equalto "2") do
      {
         es_xsetinfo rand_num 0
         es_xsetinfo format_model 0
         es_rand rand_num 1 server_var(Model_CTs)
         es_format format_model "Model_CT%1" server_var(rand_num)
         es_setplayerprop event_var(userid) "CCSPlayer.baseclass.baseclass.baseclass.baseclass.baseclass.baseclass.m_nModelIndex" server_var(server_var(format_model))
      }
      if (event_var(es_userteam) equalto "3") do
      {
         es_xsetinfo rand_num 0
         es_xsetinfo format_model 0
         es_rand rand_num 1 server_var(Model_Ts)
         es_format format_model "Model_T%1" server_var(rand_num)
         if (server_var(server_var(format_model)) notequalto "0") then es_setplayerprop event_var(userid) "CCSPlayer.baseclass.baseclass.baseclass.baseclass.baseclass.baseclass.m_nModelIndex" server_var(server_var(format_model))
      }
   }
}

This will set a player's model to the a random one of the opposite teams if they type !spy

_________________
Image





User avatar
Regular
Profile

Posts: 179
Location:
Right Behind You
 
New postPosted: 2006-05-04, 9:51 pm 

Both of these have to be installed to use the spy feature?

_________________
Image
<img src=http://www.fullthrottlekillers.com/forums/signature.php>


User avatar
Veteran
Profile

Posts: 872
Location:
New Jersey
 
New postPosted: 2006-05-04, 10:08 pm 

see the next post duh

_________________
Image
BYFBO. Custom Maps, http://www.pandatales.org/BYFBO_maps.html


Last edited by TIM3PORT on 2006-05-05, 2:45 pm, edited 1 time in total.

User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4289
Location:
Michigan
 
New postPosted: 2006-05-04, 11:38 pm 

Umm..if you want the spy script..you need both..but Models is a standalone script..mainly to help scripters not have to keep track of what model indexes are.

_________________
Image


User avatar
Moderator
Moderator
Profile

Posts: 3180
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2006-05-05, 4:48 am 

Einz you do know that this doesn't work properly, I have posted loads of info in your beta thread. It has nothing to do with my "007" additional stuff.

:-)

_________________
How To: Download Ace Event Scripts
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.axeskillz.com - http://www.digital96.com - http://www.riffsandrays.com


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4289
Location:
Michigan
 
New postPosted: 2006-05-05, 1:10 pm 

It does work properly...it stores the indexes like it's supposed to. I'm not responsible for Valve not properly displaying the models to some users :-P

_________________
Image


User avatar
Regular
Profile

Posts: 179
Location:
Right Behind You
 
New postPosted: 2006-05-05, 6:08 pm 

Thanks Einlanzers, I had a feeling both were required for the spy addon after printing out both packs and looking at them closer. Helps me understand them and tweak them the way I like when I print them out on paper.

-Razors Edge-

_________________
Image
<img src=http://www.fullthrottlekillers.com/forums/signature.php>


User avatar
Moderator
Moderator
Profile

Posts: 3180
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2006-05-05, 6:37 pm 

Einlanzers wrote:
It does work properly...it stores the indexes like it's supposed to. I'm not responsible for Valve not properly displaying the models to some users :-P


Ok if that's as far as your going to go with it fair enough. This could have been an amazing little add on. As it is I doubt if anyone will get it working properly.

You yourself said you only tried it on Bots, which as I tried to explain "appears to work".

I'll quit bugging you about it from now on mate.

Good luck.

_________________
How To: Download Ace Event Scripts
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.axeskillz.com - http://www.digital96.com - http://www.riffsandrays.com


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4289
Location:
Michigan
 
New postPosted: 2006-05-05, 6:50 pm 

Ace Rimmer wrote:
Ok if that's as far as your going to go with it fair enough. This could have been an amazing little add on. As it is I doubt if anyone will get it working properly.


Umm..I don't really want to get into an argument. This is the most I can do...I can't tweak Valve's code...what do you expect me to do?

_________________
Image


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 4289
Location:
Michigan
 
New postPosted: 2006-05-05, 7:00 pm 

I just actually tested this with 5 people on my public server and it work marvelously..so yeah...I have no idea what you mean when you say "it doesn't work"

_________________
Image


User avatar
Moderator
Moderator
Profile

Posts: 3180
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2006-05-05, 7:01 pm 

I'm not arguing mate, I am admiring your work as usual. Honestly.

Since you ask what I would expect though; well it is the same as any other script; test it with some real players and see what happens. You never know you may have been able to solve the problem.

Anyways, as I said I will quite bugging you about. Sorry.

:-) << Note the smiley.

_________________
How To: Download Ace Event Scripts
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.axeskillz.com - http://www.digital96.com - http://www.riffsandrays.com


User avatar
Moderator
Moderator
Profile

Posts: 3180
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2006-05-05, 7:04 pm 

Mate you DO know what I mean because I posted you a very detailed description of the problem in the beta thread.

So you tested it with real people. OK then. Great. My mistake, must be something wrong with all 3 of my servers.

Sorry for the hassle.

_________________
How To: Download Ace Event Scripts
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.axeskillz.com - http://www.digital96.com - http://www.riffsandrays.com


User avatar
Moderator
Moderator
Profile

Posts: 3180
Location:
10,000 feet

Steam Friends Name: Phil Pendlebury
 
New postPosted: 2006-05-07, 4:39 pm 

PS. You are still the entity daddy! :-)

_________________
How To: Download Ace Event Scripts
How To: Install ES + Scripts
How To: Get Scripts Running (for users)
How To: Get Scripts Running (for scripters)
How To: Using the MACE Clients Converter

Phil Pendlebury (Ace Rimmer)

http://www.pendlebury.biz - http://www.meap.biz - http://www.axeskillz.com - http://www.digital96.com - http://www.riffsandrays.com


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group