Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds
Watch MODSonair

Members Online

»
4 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
Rainbow HELP....
CoD4 MP Mapping
help pls
CoD2 Scripting

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access subscribe
Author Topic: kick+vibrate
bobiman
General Member
Since: May 11, 2012
Posts: 15
Last: Dec 17, 2012
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Thursday, Jul. 19, 2012 04:27 am
hey guys,

i found these functions and tried to work them out,
but they wont work> unknown function error

vibre()
{
vibre = getent ("vibre","targetname");
trig = getent("trig_vibre", "targetname");

while(1)
{
trig waittill ("trigger");
self vibrate(20, 0.3, 0.4, 1.0);
wait(5);
}
}


move()
{
move = getent ("move","targetname");
trig = getent("trig_move", "targetname");

while(1)
{
trig waittill ("trigger");
level.player viewkick(127, level.player.origin);
wait(5);
}
}


any idea why it wont recognize the function?


Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 480
Last: Apr 15, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Jul. 19, 2012 04:33 am
because these ones arent implemented in cod2 or dont work on pc
vibrate() is in cod4 but not in cod2 (same as getStance(), setCanDamage() etc)
playrumble() is only for the vibration in gamecontrollers
viewkick() doesnt do anything (maybe console too)
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Thursday, Jul. 19, 2012 04:37 am
i think self vibrate is for consoles(could be wrong on that not 100%). and the reason why viewkick wont work is because you copy and pasted it straight out of the Docs lol. your code should look like this

Code:
move()
{
move = getent ("move","targetname");
trig = getent("trig_move", "targetname");

while(1)
{
trig waittill ("trigger", player);
player viewkick(127, player.origin);
wait(5);
}
}


you will keep getting unknown function if you keep vibrate there so you might want to get rid of that. and what view kick does is moves your players angles but gives it a sorta a "kick". its good to use if your making something to do with explosions.
Share |
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Thursday, Jul. 19, 2012 06:51 am
Vibrate might be sp only...

Just checked. RTFM

http://www.zeroy.com/script/motion/vibrate.htm

Quote:
Module: Motion
SP Only
Share |
Restricted Access Restricted Access subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»